Remote Access to Home Assistant Without Exposing It to the Internet
Nabu Casa is the easy answer; here's what running the private channel yourself actually involves

Contents
Every new Home Assistant user eventually hits the same moment: standing outside the house, wanting to check whether the door’s locked or turn a light on before getting home, and discovering the app only works on the home Wi-Fi. The instinct that follows is usually “I’ll just forward port 8123,” and it’s the single worst way to solve this problem. Home Assistant is a large, actively developed application with a broad integration surface, and putting it directly on the open internet means every vulnerability in every one of those integrations becomes a door into your entire smart home — locks, cameras, garage doors, all of it — reachable by anyone scanning for the port. There are several genuinely good ways to get remote access without that exposure, and which one fits depends mostly on how much you want to run yourself.
Option one: Nabu Casa
Nabu Casa is Home Assistant’s own paid cloud service, run by the same organisation that builds the software, and it’s the option I’d point a non-technical relative toward without hesitation. For roughly the price of a coffee a month it handles remote access, Google/Alexa integration, and automatic backups, all without opening a single port on your router — it works by establishing an outbound connection from your Home Assistant instance to Nabu Casa’s relay, so there’s nothing listening on your WAN interface at all.
| |
The trade-off is exactly what you’d expect from any hosted relay: your traffic passes through a third party’s infrastructure, and you’re trusting their operational security instead of your own. For most people that’s a completely reasonable trade, and the subscription also functions as a direct way to fund Home Assistant’s core development, which matters if you want the project to keep existing. I ran it for over a year before switching, and the only reason I moved off it was wanting to understand — and control — every hop the traffic takes.
Option two: Tailscale, the one I actually run
For a technical household, a mesh VPN is the cleanest self-hosted answer, and it’s what I run now. Tailscale (or the self-hosted Headscale control plane, if you want to run the coordination server yourself too) puts your phone and your Home Assistant instance on the same private virtual network regardless of where either one physically is, using WireGuard under the hood. There’s no port forwarded, nothing listening on the public internet at all — Home Assistant is only ever reachable from devices that are themselves authenticated members of your tailnet.
| |
The Home Assistant companion app on iOS and Android happily works against a Tailscale address exactly as it would a local one — set it as the “external URL” in the app’s connection settings and it fails over automatically depending on which network the phone is actually on. The one caveat worth knowing: Tailscale needs to actually be connected on the phone for this to work, which for most people means leaving it always-on, since intermittently forgetting to connect defeats the entire point of “remote access that just works.”

Option three: a reverse proxy with real authentication
If you want a normal HTTPS URL reachable from any browser without installing a VPN client — useful if you want to hand access to a house-sitter without enrolling their device in your mesh network — a reverse proxy in front of Home Assistant is the traditional answer, but it needs to be done carefully. The proxy itself is the easy part:
| |
That Upgrade/Connection pair isn’t optional — Home Assistant’s frontend relies on a WebSocket connection for live state updates, and without those two headers the proxy will silently downgrade the connection to plain HTTP, leaving the dashboard technically loading but never updating. The part people skip is everything around that config: Home Assistant itself needs http.trusted_proxies and use_x_forwarded_for set correctly or it’ll log every request as coming from your proxy’s IP rather than the real client, which quietly breaks its own built-in login rate limiting. And critically, this route puts an authentication surface directly on the internet — I’d only run it with strong 2FA enforced on every account and, ideally, client certificate authentication in front of it for anyone who doesn’t strictly need browser-only access, which narrows “anyone on the internet can attempt to log in” down to “only devices I’ve explicitly enrolled can even reach the login form.”
Option four: Cloudflare Tunnel
A fourth genuinely viable option sits between the reverse proxy and Nabu Casa: Cloudflare Tunnel, which — like Tailscale — establishes an outbound-only connection from your Home Assistant host, so nothing listens on your WAN interface, but hands you back a normal browser-reachable HTTPS URL the way a reverse proxy would.
| |
It’s a genuinely clean answer for the “browser access without a VPN client” use case that a reverse proxy also solves, without the port-forwarding-adjacent config to get subtly wrong. The trade-off, same as Nabu Casa, is that Cloudflare sits in the traffic path — a different third party than your VPN provider, but a third party regardless. I’d treat it as a strong alternative to the reverse-proxy route above specifically, rather than a replacement for Tailscale, since the two solve slightly different problems: Cloudflare Tunnel gets you a browser URL for occasional guest access, Tailscale gets you a private network for devices you actually own.
Comparing the four honestly
| Option | Port open on router | Third party in the path | Setup effort | Best for |
|---|---|---|---|---|
| Nabu Casa | No | Yes (Nabu Casa relay) | Minutes | Non-technical households, funding the project |
| Tailscale | No | No (self-relay via WireGuard) | Low | Devices you own, daily driver |
| Reverse proxy | Yes (443 only) | No | Moderate–high | Browser-only guest access, full control |
| Cloudflare Tunnel | No | Yes (Cloudflare) | Low–moderate | Browser access without a VPN client |
The one row that should stand out is the “port open on router” column — every option except the plain reverse proxy avoids it entirely, which is the whole reason those three are worth the extra setup over the port-forward everyone’s tempted to reach for first.
Locking down the Home Assistant app itself, regardless of transport
Whichever transport carries the connection, it’s worth hardening what happens once a request actually reaches Home Assistant. Two-factor authentication is built in and costs nothing to enable — Settings → People → your user → enabling multi-factor auth adds a TOTP prompt on top of the password, which matters most on exactly the reverse-proxy setup above, since it’s the option with a login form genuinely reachable from the open internet.
| |
ip_ban_enabled writes a persistent ban after repeated failed logins from the same address, which is a meaningful backstop specifically for the reverse-proxy route — it does nothing useful for Tailscale or Nabu Casa, since neither exposes the login form to arbitrary internet addresses in the first place, but it’s a cheap, sensible default to confirm either way.
The option to actively avoid
Forwarding port 8123 (or any port) straight from your router to Home Assistant with no proxy, no VPN, and no additional authentication layer in between is the one configuration I’d actively warn anyone away from. Home Assistant’s own login page is a reasonable defence on its own, but “reasonable defence on its own” isn’t good enough for something with this much reach into your physical home, and every integration you’ve ever enabled is additional attack surface sitting directly behind that single login form. If you’ve done this in the past — plenty of older guides recommended exactly it — undo it; every other option here gets you the same remote access without that exposure.
One configuration detail applies regardless of which option you pick: Home Assistant lets you set both an “internal URL” and an “external URL” in Settings → System → Network, and the companion app uses whichever one it can actually reach, preferring internal when you’re on the home network and falling back to external otherwise. Leaving external URL blank while relying on one of the above methods means the app will keep trying the internal address and failing the moment you leave the house — a surprisingly common source of “my remote access doesn’t work” reports that trace back to a five-second settings field nobody filled in, rather than anything actually wrong with the VPN or proxy itself.
Which one for which household
Nabu Casa if you want it to just work, don’t want to run infrastructure, and are happy paying to fund the project you depend on. Tailscale if you’re comfortable with a bit more setup and want zero third-party relay in the path — my actual daily driver, and the one I’d recommend to anyone reading this site regularly. The reverse proxy route if you specifically need browser-only access for people you don’t want to enroll into your VPN, accepting the extra care that requires. All three share the same underlying principle worth internalising: Home Assistant should never have a port sitting open and unauthenticated on the public internet, regardless of which of these you pick to avoid it.
A fresh Home Assistant restore from backup is another moment this bites people — restoring on new hardware often resets network settings, and it’s easy to bring the whole system back up, confirm the dashboard works locally, declare victory, and only discover remote access is broken the next time you’re actually away from home. Worth a line item on your own restore checklist, alongside whatever else you’d normally verify after a Home Assistant backup restore.
Troubleshooting
The most common Tailscale complaint is “it worked yesterday, now the app just spins” — nearly always the phone’s Tailscale client got backgrounded and killed by the OS’s battery optimisation, which iOS and Android both do aggressively to VPN-adjacent apps. Excluding Tailscale from battery optimisation fixes it on Android; iOS is generally better about this but a full device restart occasionally leaves the tunnel in a stale state that only a manual reconnect clears.
For the reverse-proxy route, the single most common issue is exactly the WebSocket problem above — a dashboard that loads once and then never updates live is nearly always a missing Upgrade header rather than a broken Home Assistant install, every time I’ve seen it reported.
Worth setting up properly
Remote access to a smart home is one of those features that’s either genuinely valuable or completely pointless depending entirely on whether it’s secure enough that you’re not quietly worried about it. Spend the hour getting one of these three set up properly rather than the five minutes it takes to forward a port — the difference in exposure between “a VPN client is required to even attempt a connection” and “anyone on Earth can try the login form” is not a small one, and it’s the difference this whole post exists to make clear.




