Hi,
I’ve been struggling with this issue for some time, and have done my best to try different solutions posted here. TL;DR - I’m only able to connect to HA from my Android phone when the VPN is on. HA setup is as follows:
- Running on RPi4, not in docker.
- Non-self-signed SSL cert from Lets Encrypt, but only used locally, not externally.
- Wireguard VPN on the phone.
- Nabu Casa subscriber (mainly for my wife, she doesn’t want to use a VPN)
- PiHole setup as home DHCP and DNS server, mapping from server name to the RPi IP address.
- Connect to HA using https://familiar.domainname.com:8123 works fine from a webbrowser.
- Have set an external IP in the Android app to use the Nabu Casa details, the home networks are listed for when to use the internal address, and the internal address is set to https://familiar.domainname.com:8123
- When I switch the VPN off on my phone, and the app tries to connect to the internal URL, continually tries to connect but fails each time until the VPN is reconnected.
Because this isn’t connected to the external world, I’m not sure hairpinning is appropriate here? (happy to be corrected on this one). The logs on the app don’t show much other than:
10-31 18:24:18.944 7883 7883 E WebViewPresenterImpl: Unable to retrieve external auth
10-31 18:24:18.947 7883 7883 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
10-31 18:24:18.947 7883 7883 D ServerConnectionInfo: Using internal URL
Out of ideas at this stage, and not quite sure what to check next. Is anyone able to offer any suggestions?
Many thanks,
GMG.