Hello, the android app on my phone can't connect to HA only on WIFI and ethernet, it works with 4G/5G, I'm using a reverse proxy. It also works in my browser on my phone and my computer. So briefly all medium connections works except the app on connexions other than mobile data.
Also, when trying to connect with the app, there is nothing in the access log of traefik
#Android app can't connect
1 messages · Page 1 of 1 (latest)
have you done a full reboot of your phone? try that first. its intranet related, DNS/DHCP?
are you using https locally per chance? that may be the issue
I'm using https but it used to work and now its not and as I said it works in ly browser also on my phone using same url
I reboot my phone and its still not working
I remove the entry in pihole in local dns records and now it works but its because the domain can be also be routed from internet
damn dns...
Is that the Issue?
If you use reverse proxy, you can use the http version when you're home. You can set this up as "Internal connection URL" in the app.
Using PiHole to have local DNS is the correct way, but you should read up on 'Split Horizon DNS' or 'Split Brain DNS'.
The question is if you want everything on your internal network to use the Proxy to get to Home Assistant or if you want everything on the internal network to directly connect to Home Assistant.
Currently you have some external domain name so when you use 'https://ha.mydomain.com' on mobile / public internet it resolves to the WAN IP address of your router which then forwards traffic to your proxy. With PiHole enabled I believe you are resolving 'ha.mydomain.com' to your home assistant server, so using 'https://ha.mydomain.com' is trying to connect to your HA server and not the proxy. As HA is only set-up for HTTP on port 8123 it does not respond and hence you get a cannot connect or timeout error.
Simplest fix is set the 'ha.domain.com' PiHole to your routers IP address since most routers automatically create Reflection (or Hairpin NAT) when you set-up a port forward.
As has already been mentioned, the Mobile app allows you to add both an External and Internal URL.
Yes
I open an issue when I realised that not only HA stop working
In my LAN I also use the reverse proxy I just put the IP of the RP instead of CF that way it stay "internal"
so what port are you forwarding your WAN IP port 443 to?