Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By QuickFix
#81424 I've read about a lot of people having problems getting mDNS to work, especially on Windows environments (it would not be the first time MS did a poor job at implementing a protocol).
Some people install Apple Bonjour on their Window system, you could try that and see if it works.

Of course you could, as a quick-and-dirty-fix, add a line to your HOSTS file, but that would be only helpful if the IP of your ESP doesn't change.
User avatar
By rudy
#81430 Apple Bonjour is the only option that I know of to get mDNS to work on a Windows system. The problems are with Bonjour installed, but I doubt Bonjour is the problem.

For the time being I'm using static IPs. I had done some work using mDNS to do a discovery of IP addresses and to then store those IPs in the device that needed them. (for ESP to ESPs com) After that point use them as static IPs until they disappear and then do a new automatic discovery. I found that mDNS was too slow when it worked. I still have more work to do on this but I haven't been able to get back to it. Too many projects and not enough time.
User avatar
By cranebird
#82754 Hello quick question. Are you trying to use the mDNS responder with the webserver in AP mode or STA mode?
mDNS will not work with the webserver in AP mode. You will have to use a captive portal. See this example https://github.com/esp8266/Arduino/tree/master/libraries/DNSServer/examples. In the example the portal captures all web requests and redirects them to the softAP IP. So just change the "*" with your preferred server name. Also in my experience, I had to abandon the .local address. I just went with a different domain like "esp8266.io".

Hope this helps.