I have been using HA with the hass.io installation for a while and its been great. However, I have just got a new wifi router and since the new router I’ve had a problem accessing my dashboard, and I cant figure out why. im sure its something simple but any help would be great.
I use the duckdns addon.
Now, when I go to my usual -> https://myhomenetwork.duckdns.org:8123/states I see the HA logo and it asks me for my login password, which I enter, but then it just hangs “connecting” and eventually says “unable to connect”. However, this works when I use my mobile phone as long as Im not on my wifi (i setup port forwarding on port 8123).
I can access it on my wifi when I put the router login directly i.e. -> https://192.168.1.XXX:8123/hassio/dashboard (although it crossed out the https and says “not secure”.
What brand/model router? I’ve had the same issues all over the place with my old Arris from AT&T router. I can access everything via my external IP address when I am external but I can’t access anything via my external IP address when I’m on the LAN (internal), yes, local addresses (192.168.x.x) work just fine internal.
Open the page while in incognito mode or after clearing your cookies. Im guessing that it isn’t even connecting. There is a lot of caching involved with HA and you can get the page and login prompt without actually connecting.
You likely need to look into nat loopback or hairpin nat for your router. Basically your request to your duckdns address from inside your network needs to get sent back internally by the router.
You’re spot on, it doesnt load when in cognito, so it must be cached.
I’ve had a look through all the router settings and theres nothing about nat loopback or hairpin nat and google isnt much help so far. I’ll keep looking.
Your issue (and mine) got me off my butt and exploring a bit more. It appears that your nor my older telecom provided routers support nat loopback/hairpin nat. All final comments in forums related end with; “buy your own router.”
Please let someone here prove me wrong.