-
Notifications
You must be signed in to change notification settings - Fork 7.6k
mDNS stops working on android after a while #9051
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? No Sign in to your account
Comments
@Dante1349 - MDNS is supported by IDF. As far as I know PlatformIO allows building Arduino Applications in |
@SuGlider thank you for you input. but isn't there any easier option to have mdns running? I tried it now as it is and its only my android device that keeps losing the domain. My pc can resolve the url all the time like on the esp8266. |
@Dante1349 the mdns server in ESP-IDF is fully compliant and even adds some extra features. The reason why Android is losing connection is probably somewhere inside the Android mDNS implementation. Our server has passed certification. |
@me-no-dev thank you very much for your support! I'm not sure if its the android implementation, that causes the issues with mDNS, i saw some logs related to bind errors when i ran the server over night. Would be nice to find the issue, but i think i give the espidf mdns a chance now. I found an example on how to combine both frameworks with platformio. I will give it a try and tell you what my results were. This is the example i found, if anyone else is interested: https://github.com/platformio/platform-espressif32/blob/master/examples/espidf-arduino-blink/platformio.ini |
@Dante1349 you are already using it in Arduino. Here we just add a CPP wrapper around the IDF mDNS server to make it more user friendly |
@me-no-dev - I think that @Dante1349 would try Arduino uses |
What i have experienced with my android ( Samsung s22 ) is that if i clear the browser cache it's sometimes can't resolve mdns for my esp32. It goes for like 5-10 minutes and it's just pops back in. Meanwhile it does not happen with other platforms. I think the problem is with the Android mdns implementation. It is fairly new and has some bugs. In the same time it can resolve my raspberry, so it's strange. |
I dind't hat the time yet to try out the idf, but i will asap. For the android issue it is strange, i don't have problems on my D1 minis with ESP8266 on android. There i can find it all the time, that why i don't think its any android issue, but I don't know. |
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
Board
esp32-s3-devkitc-1
Device Description
its only the plain board atm because i was moving fromd1 mini to the esp32 board.
Hardware Configuration
nothing
Version
2.0.14
IDE Name
platformio
Operating System
android
Flash frequency
default
PSRAM enabled
no
Upload speed
11520
Description
my issue here is familiar with: #4406. But it keeps working for my laptops and desktops, but my phone is not able to resolve the mDNS adress after some time.
Sketch
Debug Message
Other Steps to Reproduce
start the server, wait a while and try to connect via mdns resolution
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: