Skip to content

Unifi / host name #242

Closed
Closed

Description

@omygolly

Hi,

I'm having problems connecting my NodeMCU with out Unifi-network at work (it works at home). After some googlin' it seems to be a problem stemming from an unknown host name, aka set a proper host name and it will get an adress.

Any way to set the host name in the UI or otherwise?

Cheers,
B

Activity

  1. Aircoookie commented on Oct 2, 2019

    @Aircoookie
    Member

    Hi,

    sounds like your company network is an enterprise network. Those aren't easy to connect to, currently WLED only supports home networks (WPA2-PSK). It seems like it is possible though: https://www.google.com/search?q=esp8266+enterprise+wifi

    I'll keep this in mind and maybe I can add support soon!
    Cheers!

  2. creativeretail commented on Oct 4, 2019

    @creativeretail

    Hi

    I've had problems with UniFi in the past with non-compliant hostnames. Specifically ones that included spaces. It might be worth a try amending the 'serverDescription' from "WLED Light" to "WLED-Light".

    The 'serverDescription' variable is used to set the hostname. I guess it would possibly make more sense to split this out into two separate settings. You could perhaps automatically populate the hostname field with a sanitised version of the serverDescription. Basically all that's technically allowed is a-z, 0-9 and the 'hyphen-minus' character (0x2D). Some systems will tolerate anything at all for the hostname though, even unicode!

    Steve

  3. Aircoookie commented on Oct 4, 2019

    @Aircoookie
    Member

    @creativeretail Thank you for that observation! I will change the default server description to comply with that.

  4. creativeretail commented on Oct 4, 2019

    @creativeretail

    Not saying this will solve omygolly's issue, but certainly worth a shot!

  5. thedannymullen commented on Nov 27, 2019

    @thedannymullen

    I have UniFi and 0.86 works for me. Must be fixed now.

  6. githubgoucho commented on Jan 24, 2022

    @githubgoucho

    Hi,

    I use an AVM Fritz!Box and had the same problems -> no WLED hostname inside the client list and after every reboot a new IP-adress from the esp ...

    I found my router did not eat hostnames without ending zero,
    I fixed it by adding a 0x0 at the end of hostname like

    WiFi.setHostname(hostname + 0x0);

    now every think works fine always a proper hostname and the same IP

    cheers GG

  7. blazoncek commented on Jan 25, 2023

    @blazoncek
    Contributor

    If you are having similar issues as noted above, try to upgrade your router firmware. Then check if mDNS is correctly working on your router (use mDNS/Bonjour explorer/browser).
    If you then still experience host name not being resolved re-open this issue.

  8. weiqinglong51 commented on Jan 25, 2023

    @weiqinglong51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions