DanielBaulig / esphome-web-app

A standalone app for flashing, provisioning and controlling of ESPHome devices
https://www.rarelyunplugged.com
MIT License
48 stars 8 forks source link

.local addresses not reliably working due to mDNS resolver failing on Android #21

Open DanielBaulig opened 7 months ago

DanielBaulig commented 7 months ago

There's been several reports of users on Android not being able to connect to their devices using the .local mDSN domains. I've run into this problem myself on the Android emulator for Android 13. There have also been reports for Android 14 though.

Replacing the .local domain with the device IP address seems to resolve the issue. It's possible that this is a bug in Android itself or Chromium for Android (so far only reports for Chromium based browsers).

Creating this issue to help track this. At this point I don't think there's anything particular that we can do about this other than maybe figure out how to reproduce the issue and report a bug with Android and/or Chromium.

DanielBaulig commented 7 months ago

I've seen this happen more often on Windows, too. Trying to connect to an ESP32 using it's mDNS name will fail with a DNS resolution error, but repeated tries will eventually succeed.