QUERY · ISSUE
Feature Request - mDNS on esp8266
port-esp8266
I see that it was added to the ESP32 (https://github.com/micropython/micropython/pull/4951)
Is it possible to also add it to the esp8266 port ??
CANDIDATE · PULL REQUEST
esp32: Add support for mDNS queries and responder.
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=...).