mDNS lookups? #15791
mDNS lookups?
#15791
Replies: 1 comment 2 replies
-
You can switch to ESP32. The ESP32 has better networking capabilities, including improved support for mDNS. If you can switch to using ESP32 instead of ESP8266, you might find that usocket.getaddrinfo() works as expected for .local addresses. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have ubuntu server on a Raspberry Pi, and I have enabled mdns. Computers on my network find 'home.local' without issues.
On an ESP8266 (latest MicroPython) no dice.
Same getaddrinfo works fine on external web server names.
I found https://forum.micropython.org/viewtopic.php?t=11498 which shows the same issue has been around for quite some time.
I have two potential workarounds, but would prefer to be able to do a simple getaddrinfo()
Workaround #1: set a static ip on my router
Workaround #2: scan my local network for my pi
Basically the pi will collect data from ESP8266's and ESP32's and present via rrdtool
Beta Was this translation helpful? Give feedback.
All reactions