← index #10957Issue #15297
Related · high · value 2.756
QUERY · ISSUE

RP2040: mDNS support in AP mode

openby ThinkTransitopened 2023-03-07updated 2023-03-07
enhancement

Implement mdns in AP mode on RP2 port to allow users to access micropython device by hostname.

CANDIDATE · ISSUE

rp2 - mDNS not working

closedby massimosalaopened 2024-06-17updated 2025-04-03
bugport-rp2

Port, board and/or hardware

rp2040

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 rp2:

  • 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

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