WLED icon indicating copy to clipboard operation
WLED copied to clipboard

Unifi / host name

Open omygolly opened this issue 7 years ago • 8 comments

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

omygolly avatar Oct 02 '19 12:10 omygolly

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!

Aircoookie avatar Oct 02 '19 17:10 Aircoookie

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

creativeretail avatar Oct 04 '19 08:10 creativeretail

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

Aircoookie avatar Oct 04 '19 11:10 Aircoookie

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

creativeretail avatar Oct 04 '19 11:10 creativeretail

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

thedannymullen avatar Nov 27 '19 01:11 thedannymullen

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

githubgoucho avatar Jan 24 '22 17:01 githubgoucho

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.

blazoncek avatar Jan 25 '23 09:01 blazoncek

发自139邮箱

------------------ 原始邮件 ------------------

发件人: "Blaž Kristan" @.***>

发送时间: 2023-01-25 17:38:28

收件人: Aircoookie/WLED @.***>

抄送: Subscribed @.***>

主题: Re: [Aircoookie/WLED] Unifi / host name (#242)

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.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

weiqinglong51 avatar Jan 25 '23 10:01 weiqinglong51