How to Reach Home Assistant from Anywhere, Without Opening a Port on Your Router
Sooner or later, everyone with Home Assistant wants to check the heating from the pub or see if they left the garage light on. The quick fix you’ll find on old forum posts is to “forward port 8123” on your router. Please don’t.
Forwarding a port puts your Home Assistant login page on the open internet, where automated scanners go looking for it and start guessing passwords. And it’s not just your lights behind that page. It’s your locks, your cameras and your alarm.
This guide covers three safer ways in, and walks through the one I’d pick for most people.
The problem
- Home Assistant is on your home network. Your phone, out and about, isn’t.
- Port forwarding works, but it exposes Home Assistant directly to the internet.
- You want remote access that’s encrypted, doesn’t open a port, and is easy to keep running.

The three safer options
| Option | Cost | What you need | Best for |
|---|---|---|---|
| Tailscale (private network) | Free Personal plan: up to 6 users, unlimited personal devices | A Tailscale account, the app on each phone or laptop | Most people. Nothing is exposed to the internet at all |
| Home Assistant Cloud (becoming Home Assistant Link in December 2026) | £6.50 a month or £65 a year, plus VAT. 31-day free trial | A Nabu Casa account | The easiest route; also gives you Alexa and Google voice, and off-site backups. Supports the project |
| Cloudflare Tunnel | Needs your own domain name | A domain using Cloudflare for its DNS | People who want a normal web address, and are happy to add an extra login in front |

What you need
- Home Assistant, ideally Home Assistant OS (the steps below use the Tailscale app; apps used to be called add-ons). There’s a Docker route further down.
- Admin access to Home Assistant and your router.
- The Home Assistant Companion app on your phone.
- For Tailscale: a free Tailscale account (sign in with Google, Microsoft, Apple or GitHub).
Before you start: close any open doors
If you’ve ever forwarded port 8123 (or 443) to Home Assistant, log in to your router and delete that rule now. Then turn on multi-factor authentication for your Home Assistant user: click your profile (bottom left), open the Security tab and enable the authenticator app option. Do this whichever option you pick.
Option 1: Tailscale (my pick)
Tailscale builds a private, encrypted network between your own devices. Your phone can reach Home Assistant as if it were at home, but nothing on the internet can see it.
Step 1: Install the Tailscale app in Home Assistant.
- Go to Settings → Apps and open the app store.
- Search for Tailscale (it’s in the community apps repository) and select Install.
- Select Start, then check the Log tab to make sure it’s running.
Step 2: Link it to your Tailscale account.
- Open the app’s Web UI. (The app’s own docs note that some browsers struggle here; Chrome on a desktop is the safe bet.)
- Sign in to your Tailscale account and approve the device.
- Check the log again: it should say it’s connected.
Step 3: Stop the key from expiring. By default, Tailscale makes devices sign in again after a while. For a box in a cupboard, that means remote access quietly stops one day. In the Tailscale admin console, go to Machines, find your Home Assistant device, open its menu and choose Disable key expiry. The app’s docs recommend this.
Step 4: Put Tailscale on your phone.
- Install the Tailscale app on your phone and sign in with the same account.
- Turn Tailscale on. You’ll see your Home Assistant device listed with an address starting 100.
Step 5: Point the Companion app at it.
- In a phone browser, with Tailscale on, try
http://homeassistant:8123(Tailscale’s MagicDNS name), orhttp://100.x.y.z:8123using the address from step 4. - Once that works, open the Home Assistant Companion app’s settings for your server, and set the external URL to that same address.
That’s it. At home, the app uses your normal address. Out and about, with Tailscale on, it goes through the private network.
Optional: a proper HTTPS address. The Tailscale app has a share_homeassistant option that serves Home Assistant on a https://…ts.net address with a valid certificate. To use it, you need MagicDNS and HTTPS certificates turned on in the Tailscale admin console, SSL turned off in Home Assistant’s own HTTP settings, and Trust X-Forwarded-For turned on with 127.0.0.1 added as a trusted proxy. Leave it on Serve (your devices only), not Funnel, which publishes it to the whole internet.
Running Home Assistant in Docker?
Install Tailscale on the host machine instead, using Tailscale’s install script:
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
Follow the sign-in link it prints, disable key expiry in the admin console as in step 3, and reach Home Assistant on the host’s 100. address, port 8123. (As with any script from the internet, read it before you run it.)
Option 2: Home Assistant Cloud
The least fiddly route, and the money goes towards Home Assistant itself.
- Go to Settings → Home Assistant Cloud and start the free 31-day trial (no card details needed).
- Turn on Remote control. You get a private web address to use in the Companion app.
- While you’re there, it can also link Alexa and Google Home without any manual setup, and keep an off-site backup (see my backups guide for setting that up).
From the December 2026 release it’s called Home Assistant Link. Nabu Casa says the features stay the same.
Option 3: Cloudflare Tunnel
Good if you want your own address, like ha.yourdomain.co.uk. Your domain must use Cloudflare for its DNS.
- Install the Cloudflared app from the community app repository, but don’t start it yet.
- Set its
external_hostnameoption to your address, for exampleha.yourdomain.co.uk. - Tell Home Assistant to trust the tunnel. Add this to
configuration.yaml(or use the HTTP server settings under Settings → System → Network), then restart:
# configuration.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
- Start the app, open the sign-in link in its log, and sign in to Cloudflare. The app creates the tunnel and the DNS record.
- Put a login in front of it with Cloudflare Zero Trust (Access), so strangers hit Cloudflare’s login before they ever see Home Assistant’s.
The address is public, so multi-factor authentication on Home Assistant isn’t optional here.
Pro tips and common pitfalls
- Forgetting the old port forward. Setting up Tailscale doesn’t close a port you opened years ago. Check the router.
- Key expiry. If remote access works for months and then stops, it’s almost always Tailscale’s key expiry. Disable it for the Home Assistant device.
- Tailscale off on the phone. Remote access only works while the Tailscale app is connected. Leave it on, or set it to connect automatically when you’re off your home Wi-Fi.
- “400: Bad Request” after adding a proxy. That’s Home Assistant refusing a proxy it doesn’t trust. Check the
trusted_proxiesentry; on Proxmox or other setups, read the log for the proxy’s real address.- Funnel by mistake. Tailscale Serve keeps it private. Funnel makes it public. Know which one you’ve switched on.
- Voice assistants. Tailscale is private by design, so Alexa and Google can’t reach Home Assistant through it. If you want those, Home Assistant Cloud is the simple answer.
Safety note
Nothing electrical here, but remote access is a security job. Whatever you can do from your sofa, anyone who gets in can do too: unlock the front door, switch off the alarm, turn the heating up to 30°C. Use a strong, unique password, turn on multi-factor authentication, keep Home Assistant updated, and never expose it with a plain port forward.
Sources
- Tailscale app for Home Assistant, documentation (install, Web UI sign-in, key expiry advice,
share_homeassistant, Serve and Funnel requirements) - Tailscale, pricing (free Personal plan: 6 users, unlimited user devices)
- Tailscale, Linux install script
- Nabu Casa, pricing (£6.50 a month, £65 a year, tax not included, 31-day trial, what’s included)
- Home Assistant blog, “Big Tech ruined the cloud, so we’re renaming ours” (2 Oct 2026; Home Assistant Link in 2026.12)
- Cloudflared app for Home Assistant, documentation (domain on Cloudflare,
external_hostname, trusted proxy 172.30.33.0/24, Zero Trust) - frenck.dev, “Renaming Home Assistant add-ons to apps”
