Hey there,
I have a weird problem and couldn’t find any documentation, forum posts, … to that.
This week I finished to configure external access. I shortly explane my environment but I do not think that there is the problem.
My ISP connected us to a CGN so I do not have a public IPv4 address. I have to use IPv6 to get access to my ha vm. For IPv4 devices I use a vServer with public IPv4-address running 6tunnel. That converts all IPv4 traffic to IPv6. Also DNS is configured to work proberly. Now I can access my HomeAssistant from everywhere through a browser by just typing like ha.example.com:8123 (but with my domain). Does work from phone (using Chrome) and from PC (using Chrome, Firefox, Edge, …).
In the android app I configured the local IP-address once. Now I wanted to change the address to my public DNS so I can also use it when not at home. Furthermore I added SSID of my home wifi network and entered the local IP of HA in the internal-textfield below.
When connecting via wifi it works. when connecting via mobile network it says that it wasn’t able to get connection. I try to translate my error message as good as possible:
Website not available
Website https://ha.example.com:8123/?external_auth=1 couldn't load.
net::ERR_NAME_NOT_RESOLVED
Name not resolved sounds like issue in DNS but as I said I can open HA in browser even via mobile phone network.
I would be very grateful if someone has an idea, a solution suggestion or approaches.
well if you replied back saying you had to accept the SSL prompt in a browser then I would say that would not work but since the SSL cert is valid you shouldn’t be facing that prompt.
Okay I’ve read this tips website. In my opinion there is nothing I can improve. As mentioned I already solved the problem of beeing in a CGN with own solutions (vServer that takes IPv4 traffic and sends it over IPv6 even carrying the http header in my network) and have DNS assigned (A record pointing to vServer, AAAA record pointing to my network). I forgot to mention that my Firewall does the encrypting for homeassistant. But I don’t think it makes a difference in that point. If logging in from browsers didn’t work neither, I’d say the problem is in the firewall. But I can connect from browsers from anywhere.
local IP access works, outside access doesn’t. I will have to check next time if I can access through cellular to eliminate the local dns issue. Thanks for the insight.
same problem here. Local/remote browsers and local app work flawlessly. When I try via internet with my android app I get error “ERR_NAME_NOT_RESOLVED”. This really sounds like a DNS problem, but why does the same url work in a browser on the same device. DNS resolve should be the same, too.
Using latest HAOS in a VM with domain behind traefik with Lets encrypt.