← index #9166Issue #7169
Related · high · value 0.315
QUERY · ISSUE

ESP32 mDNS support on Ethernet (class LAN)

openby mohnazemiopened 2022-08-31updated 2026-03-19
enhancementport-esp32

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.

CANDIDATE · ISSUE

esp32: Station interface doesn't activate mDNS responder

closedby rubydesignopened 2021-04-27updated 2021-07-06

So i have been trying to get one esp32 to connect to another, without actually hardcoding the ip of the "server".
I am a micropython newbie, but an older programmer, so i think the fact that this has taken me 2 days is a lot to do with documentation and the intricacies of MP and detailed knowledge of dns that mp should not assume a casual user has.

I would propose to add some lines to the esp32 network section, ie https://docs.micropython.org/en/latest/esp32/quickref.html
Maybe a line about how to set the hostname. (also when, if there are restrictions, ie before or after?)
The fact that one needs a station and it does not work with an ap
And that the station needs to be connected to a router.
Maybe a mention about the .local and how to ping from a pc.
And code to use the hostname from a second esp, ie in getaddrinfo.

I would be happy to make a pr for the esp docs if no one of the coders want to do this.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied