So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By flagtrax
#69694 I've just started playing with mDNS using a pretty good instructable (IMHO) https://tttapa.github.io/ESP8266/Chap10%20-%20Simple%20Web%20Server.html in order to learn how mDNS works. Not too successfully though :lol: The sketch is simply a "hello world" test, sending text to a browser. As mentioned here Bonjour needs to be installed on Windows which I haven't yet done, but I thought I'd be able to access the 8266 via Android phone using the mDNS name. Instead when I input http://esp8266.local as the instructional states, what I get returned is a page from my ISP's search engine listing references for the 8266. If I'm thinking correctly that means that the request went from the lan side of my router to the wan side and out to the ISP. Is there something needed for the android os as well? Thanks for any enlightenment. BTW; For anyone interested I use an app called Who's on my WiFi that will identify any devices that are logged on to the router. It reports IP address, any known name, MAC, and if it's currently connected. you can get it here https://whoisonmywifi.com/windows/
User avatar
By Narfel
#71053 The redirect to your provider is just that, a redirect. It is a setting in your router that "helps" you find what you are looking for and is not addressed to people that know what dns is ;) Also I have yet to find a solution that makes name resolving in a windows environmant reliable without a server. As soon as you plop a proper server in your lan it starts working without a hitch. Until then its the -sometimes-it-works-sometimes-not-forever-or-polling-hey-just-restart-the-bonjour-service mess it is now. To be honest you'd probably have more stability using UPNP or ZeroConf at this point.
User avatar
By Narfel
#71100 Oh, i didn't even know that they're essentially the same. I just remember endless fighting with Bonjour on client PCs at work back in the day. I have no understanding of the programming side of that - only as a frustrated user. Sorry if i gave that impression.

Now that i read up on it a little context in case OT is interested: https://medium.com/@_tiwiz/bonjour-andr ... 3d3fde760e
User avatar
By daleschultz
#81930 I am also having issues with setting hostname not working.

for example:

Code: Select all WiFi.hostname("abcd"); 
 Serial.println(WiFi.hostname());


Shows that the host name is still empty. After it connects to WiFi the automatic name of ESP_123456 is returned by WiFi.hostname()

Yes, this is first thing in setup(), before any other reference to WiFi object.

Note: it seems to be random/intermitant, it worked fine all afternoon then suddenly stopped working and I cannot get it to work again. Two different NodeMCU units. Also tried different LwIP options.

I am using ESP8266 2.5.0 with board: NodeMCU 1.0 (ESP12E module)
Arduino IDE 1.8.9