Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

[Question] ESP8266 mDNS: How to advertise on the network?

Open probonopd opened this issue 11 years ago • 6 comments

I would like to use mDNS in order to advertise the web server running on the ESP8266 to the network, so that it is easily found by guests and other devices on the network. How can this be done?

probonopd avatar Mar 29 '15 09:03 probonopd

I would suggest you to check the example provided with ESP8266mDNS library.

igrr avatar Mar 29 '15 10:03 igrr

Others seem to have the same issue:

"Also used the App Bonjour Browser, but the ESP is not seen as Bonjour device. Anyone having success with this example on a Mac?"

http://www.esp8266.com/viewtopic.php?f=29&t=2270

probonopd avatar Apr 04 '15 17:04 probonopd

To be seen as a bonjour service we need to support DNS-SD, not just bare mDNS. DNS-SD may be implemented on top of mDNS, but I haven't yet done this. On Apr 4, 2015 20:08, "probonopd" [email protected] wrote:

Others seem to have the same issue:

"Also used the App Bonjour Browser, but the ESP is not seen as Bonjour device. Anyone having success with this example on a Mac?"

http://www.esp8266.com/viewtopic.php?f=29&t=2270

Reply to this email directly or view it on GitHub https://github.com/esp8266/Arduino/issues/7#issuecomment-89615001.

igrr avatar Apr 04 '15 19:04 igrr

Ivan,

Thanks for this library! I'm excited to be able to incorporate the ESP in my projects. I encountered the same issue with mDNS not working completely. I'm still familiarizing myself with the differences between mDNS and DNS-SD. How much work is involved with implementing DNS-SD to allow the example to work as described with esp8266.local? Does the ESP come up as esp8266.local on your machine? If so, what configuration/browser are you using to get it to register?

Thanks, -Russ

DangeRuss1313 avatar Apr 06 '15 18:04 DangeRuss1313

I can also confirm that the mDNS example is not working at all for me.

gregslomin avatar Apr 18 '15 06:04 gregslomin

I've added missing interface address setup for multicast PCBs, so this example works properly now.

Note that it only works in station mode, see my comment here for details.

igrr avatar Apr 27 '15 16:04 igrr