← index #9166PR #4951
Related · high · value 0.218
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 · PULL REQUEST

esp32: Add support for mDNS queries and responder.

closedby dpgeorgeopened 2019-07-26updated 2021-01-10
port-esp32

This adds support to the esp32 for mDNS queries and a responder. See discussion in #4912.

For queries do: socket.getaddrinfo('device.local', 123)

The responder is automatically enabled, with default hostname "esp32.local".

TODO: work out a way to specify the hostname. Probably need a new config option wlan.config(mdns_hostname=...). Or could reuse wlan.config(dhcp_hostname=...). Even though there are different concepts of hostnames it'd probably be a good idea to unify them into a single config, eg wlan.config(hostname=...).

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