Can't access HASS from outside home network

If I’m outside my home network I can’t connect to my HASS server. I have my network on a Duckdns dynamic DNS which works for the other PCs in my network. HASS even works on the Dynamic DNS if I’m on my home network. It’s just when I’m on another network or mobile data that I can’t connect. How can I begin to troubleshoot this?

There are two ways to access hosts from outside:

  • The router can have a default host configured to forward all requests to (DMZ) or you should configure port forwarding, i.e. forward port 8123 from your router to your HA.
    Make sure to define a HA password in either case.

My port forwarding seems to be fine since I can go to my duckdns with the forwarded port and it works fine. I just have to be going to that address from the same network HASS is on.

Run tracert to HA from the machine that can access HA. If you see your local IP there then it is not going through port forwarding.

Figured it out. It was a firewall rule. Thank you for your help though.