Does mDNS work on ESP32?

Hello
Tried to use mDNS and I get a error.

#include <ESPmDNS.h>

After WiFi.begin connected I run the mDNS

if (!MDNS.begin("myName"))
error.....

I do not get an error so it must be running yet when I try and connect to "myName.local" does not work and I get a error "ERR_CONNECTION_REFUSED".

I also cannot connect to the local IP assigned by the router 192.168.0.x which I can connect to if I comment out mDNS.

Does this or is this supposed to work on ESP32 ?

thanks
CzB

This might help: ESP32: mDNS address resolution - techtutorialsx

Thanks I have re done mine to be exactly the same as that and it still does not work !.

I must assume it would be an unreliable way of doing things even if I managed to now get it to work and will look for other options.
Thanks

Did you spot the requirement that the PC also needs to be running mDNS?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.