I am a total newbie. I have just reinstalled Home Assistant on a Raspberry Pi 4. I configured Duck DNS. Now I can now ONLY access HA through my phone with Wi-Fi disabled. Is it my router? Any ideas you might have for help would be great!
Sounds like your router doesn’t support NAT reflection, or it isn’t enabled. Check the router’s settings.
The other option you have is to use a proxy server to handle SSL, and then you can use the DuckDNS address externally, and the LAN IP internally.
Are we talking about http or https??
are we talking about local ip or fqdn?
your network don’t know your fqdn
you maybe need a dns server or configure the hosts file.
or use local ip 192.168.x.x:8123
in compagnon app you can configure local and external ip
The local IP will only work if you’re not doing SSL in Home Assistant.
The “network” doesn’t know the FQDN, but it doesn’t have to. DNS and NAT Reflection can handle all that just fine.
I only use local dns; i configured my external domain in the router and made sure the name of the local ip reservation in dhcp matches the external name.
So now i use https://my.homeassistant.ha external and https://my.homeassistant.ha:8123 internal (where my points to my dhcp ip reservation)
-some isp don’t allow ip loopback so you can’t acces with your fqdn from local network.
-8123 is the http port and not https (443) so remove :8123 or remove the ‘s’
http://192.x.x.x:8123
or
http://fqdn:8123
or
https://fqdn (= https://fqdn:443)
provided you forwarded external port 443 to internal port 8123.
But that still wouldn’t resolve it working for internal…
You either have to set up a dns server or use the routers build in one, which i mentioned earlier (let me know if you need more info on that, i posted it a while ago)