mDNS and Android! #731
Replies: 1 comment 5 replies
-
Hey! That's a very valid question. I'll try to answer it as best as I can. First of all, as far as I know, Android does not have a mDNSResponder running. Which would be responsible for resolving .local addresses via mDNS. Therefore it doesn't work if you try to There is a High Level API provided to resolve mDNS Services from an Android application perspective: https://developer.android.com/develop/connectivity/wifi/use-nsd An explanation for why it works sometimes: Your WiFi-router may resolve the .local addresses additionally when it provided an address to your device and your Android-Phone uses the DNS-Server of your WiFi-router. To reason why my app is able to resolve your device: The app utilizes it's own mDNS Resolver on a lower If you need further information, please let me know. |
Beta Was this translation helpful? Give feedback.
-
Hey! I found your project while fiddling with an ESP32S3 dev board and my Android phone.
I run an mDNS service on my dev board and all my other devices (Windows laptop, MacBook Air, iPad, etc.) can see the
.local
address of the device, except my phone (at least some of the times, it's quite maddening really).So, if use
adb
and connect to my phone and runping something.local
it doesn't get resolved ... most of the times, sometimes it does get resolved, and I have no idea as to why.However if run your app on my phone it detects my service available on my local network.
Any idea what kind of problem could cause this? I know it's not exactly related to your project, but I thought you might be interested in this or have some sort of insight on how to debug this.
Thanks a bunch!
Beta Was this translation helpful? Give feedback.
All reactions