Android app stopped working on wifi (internally)?

Hi All,

Im struggling with a problem that started today across multiple phones, not sure if the android app updated and broke in the process but it started happening across multiple phones around the same time (comes up with the normal “unable to connect to Home Assistant… refresh external url” dialog). If I turn off wifi on the phone and use 4g/5g it works fine.

Both internally and externally the URL for HA is the same.

Also works fine from any of the web browsers on the same phones (wifi or 4g), the reason its breaking though is that the HA app is trying to connect to the external IP rather than the internal IP, what I dont understand is where HA is getting it from? internal dns returns the normal internal IP, yet the HA app still tries to connect to my external ip (which it wont be able to).

Looking at the app doco, it never mentions how the HA app does dns (i would have assumed it just uses whatever the phone itself normally uses) and it says split-brain dns should work just fine but has this changed in a recent update?

HA itself isn’t accessible via any other urls (i.e. there is no internal url as such, its all on https://mydomain.com) its entirely dependant on split brain dns and hairpin nat isnt really an option.

1 Like

When you get the pop-up go to settings then logs and look for the failure. The error also shows up if no communication happens for 10 seconds. The app waits for the frontend to notify that it has been connected. The logs will show this.