ESP32 mDNS support on Ethernet (class LAN)
Hi guys,
I wanted to know if there is a specific reason why the mDNS is supported on the WLAN interface (via hostname config parameter) for ESP32 but it is not supported on the LAN/Ethernet interface. There seems to be no limitation in IDF's TCP/IP Adapter library for this, but the ESP32 port does not expose a config parameter to set this.
esp32 - mDNS not working
Port, board and/or hardware
esp32 wroom
MicroPython version
mp 1.22.2
Reproduction
There isn't a code sample, the feature is built-in in the firmware.
Expected behaviour
The micro working on WiFi (STA_IF or AP_IF) should respond to mDNS queries.
Observed behaviour
Not working.
Additional Information
I code in Python a mDNS and LLMNR responder.
It works like a charm on the esp8266: the micro, with its hostname xxxxxx.local is recognized by any browser (browsers use mDNS) and by ping (on microsoft pc, ping use also LLMNR).
Running my module on the esp32:
- LLMNR works
- MDNS doesn't work: when my code binds a UDP socket to the local port 5353, mp raises an exception
[Errno 112] EADDRINUSE
So the firmware has already taken the mDNS port ... is trying to do something... but mDNS isn't working.
Code of Conduct
Yes, I agree