Guides · Published
VPN blocking local network access on Android?
If a VPN is blocking local network access on Android, try the server’s address while your phone is on the same Wi-Fi as the server. If Home Assistant, Jellyfin or your NAS fails only on mobile data, check how the phone reaches your home network from outside, because a local network setting won’t help there.
The two problems need different fixes, even when the app shows the same connection error for both.
At home and away
Say your Home Assistant server has the address 192.168.1.20, so you open http://192.168.1.20:8123 on the phone. For Jellyfin it would be something like http://192.168.1.30:8096. Use your own server’s address and port.
| Phone on your home Wi-Fi | Phone on mobile data | |
|---|---|---|
Where 192.168.1.20 is |
On the network the phone is connected to | On your home network, and the phone has no route to it |
| What has to happen | The VPN lets the phone reach devices on its own network | Something carries that address to your home |
| Where to look | The VPN app’s local network setting, Android’s Block connections without VPN, the Nearby devices permission | Tailscale, a WireGuard tunnel to your router, or the service’s own remote access |
| With the VPN disconnected | Should open, if the server is up | Normally still unreachable |
Disconnecting the VPN lets your apps use your normal connection during the test. If Android’s Block connections without VPN is on, your apps normally lose network access when the VPN disconnects, so turn it off for the test and back on afterwards.
If the address doesn’t open on your home Wi-Fi with the VPN off either, the VPN isn’t the cause. Check the server, its firewall, and whether the phone is on a guest Wi-Fi that keeps devices apart.
Why a VPN cuts off devices on your Wi-Fi
On Android, a VPN app tells the system which address ranges go into its tunnel. A full-tunnel VPN asks for all of them, and your home range, such as 192.168.1.0/24, is among them. If the VPN app then sends a request for 192.168.1.20 to its server, the request ends up on the wrong network and never reaches your device.
A VPN app can leave ranges out. Since Android 13 it can exclude them directly (excludeRoute), and before that an app listed only the ranges it wanted in the tunnel. It’s a setting in the VPN app, and each app has its own name for it:
| App | Setting on Android | Conditions |
|---|---|---|
| Mullvad VPN | Local network sharing, under Settings, VPN settings | Mullvad advises connecting to local devices by IP address (help page). |
| NordVPN | Local network discovery, under Profile, Settings | NordVPN says to turn it on when casting or mirroring can’t find a device (help page). |
| Proton VPN | LAN connections, under Settings, Connection, Advanced settings | A setting for paid plans, on by default. A change takes effect after a reconnect (help page). |
| Tailscale | Allow LAN access, where you pick the exit node | It applies while you use an exit node. Until you turn it on, the phone can’t reach the network it’s connected to (documentation). |
| WireGuard | Exclude private IPs, when you edit the tunnel’s peer | Shown for a tunnel with one peer and a full IPv4 route. It replaces that route with a list that leaves private IPv4 ranges out (source, AllowedIPs explained). |
In other VPN apps, look for a setting called LAN or local network access. Mullvad suggests turning its setting off on public Wi-Fi, where the other devices on the network aren’t yours.
Android’s own block
Android has a switch of its own, Block connections without VPN, next to Always-on VPN in the system’s VPN settings. With it on, the system blocks any network traffic that doesn’t use the VPN. Local traffic that a VPN app excluded from its tunnel doesn’t use the VPN, so Android drops it. Mullvad’s help page says its Local network sharing doesn’t work with this switch on.
If local devices stopped answering after you turned that switch on, turn it off and try again. You then depend on the VPN app’s own protection when the tunnel drops, if it has any. Some VPN apps avoid the conflict by taking local traffic in and passing it to the Wi-Fi themselves. VPN kill switch on Android explains what the switch does and doesn’t cover.
The Nearby devices permission on Android 17
Since Android 17, “enable local network access” can also mean a permission, and that one has no connection to VPNs. An app that targets Android 17 normally needs the local network permission to talk to devices on your network. It covers connections in both directions, broadcasts, and looking up .local names. Without it, opening a local web page usually times out while internet access keeps working. Some apps don’t ask for it because they let you pick one device through Android’s own picker.
The permission is part of the Nearby devices group. On an Android 17 phone, if your media or smart home app finds nothing at home with the VPN off too, open that app’s permissions in Android’s settings. If Nearby devices is listed and not allowed, allow it. Apps that still target Android 16 or older keep their local access for now.
Test by address, then by name, then discovery
Run these on the same Wi-Fi as the server, in this order.
- The address. Open
http://192.168.1.20:8123in a browser, with your server’s real address and port. If it fails with the VPN on and opens with it off, go back to the settings above before trying anything else. - The name. Try the name your router gives the server, or
http://homeassistant.local:8123. A router’s names can stop working when the VPN app uses another DNS server. Names ending in.localnormally use multicast DNS, which can stop working behind a VPN too. If the address works and the name doesn’t, keep using the address, and give the server a fixed one in your router. - Discovery. This is the list of servers or cast targets that an app finds without your help. Jellyfin’s apps, for example, send a broadcast to UDP port 7359, and Jellyfin’s documentation says its discovery services don’t work outside your local subnet.
Discovery can fail while the server still opens by its address. It usually relies on broadcasts or link-local multicast, and a routed VPN doesn’t normally carry those. Tailscale has an open request for mDNS support. We haven’t measured discovery or casting behind each VPN app, so we can’t say it comes back once the setting is on. If the server opens by its address in a browser, type that address into the app.
Away from home, the address needs a way there
On mobile data, your phone normally has no route to the private address of a server at home. There are three common ways to give it one.
- Tailscale on the server. The server joins your tailnet and gets its own address there, of the form
100.x.y.z. Jellyfin’s Tailscale page has you connect the phone to the same tailnet and open100.x.y.z:8096. Try it in a browser first. If that works, enter the same address in the Jellyfin app. - A Tailscale subnet router. One device at home that stays on runs Tailscale and advertises your home range, for example
192.168.1.0/24. Once the route is approved and your tailnet’s access rules let the phone use it, the phone reaches devices at their ordinary home addresses, including ones that can’t run Tailscale. Tailscale’s documentation says Android picks up these routes automatically. - A WireGuard tunnel to your router. Many routers can act as a WireGuard server. A config whose
AllowedIPslists your home range sends only those addresses home. The phone has to be able to reach the router from the internet. Carrier-grade NAT can prevent incoming IPv4 connections to your home, which Jellyfin’s Tailscale page gives as one reason to use Tailscale.
Jellyfin doesn’t need an exit node. An exit node carries a device’s internet traffic. Reaching a server in your tailnet, or one behind a subnet router, works without it. If you do select an exit node, the Tailscale row in the table above applies. Allow LAN access is about the network the phone is physically on, and it doesn’t give you the network around the exit node.
The Home Assistant Companion app away from home
Home Assistant has a Tailscale integration that only watches your tailnet. It lists your devices and when they were last seen, and its page says it does not make Home Assistant reachable over Tailscale. For that, Tailscale has to run on the Home Assistant machine, or a subnet router has to sit on the same network. On an installation that supports apps, Tailscale’s walkthrough installs the Tailscale app from Settings, Apps. Older Home Assistant versions call these add-ons.
The Companion app can hold two addresses, an internal URL and an external one, under Settings, Companion app, then your server. It uses the name of your Wi-Fi to choose between them, and for that its location permission has to be Allow all the time. The same page says you don’t need an internal URL when one address works wherever the phone is.
Since version 2025.11 the app also asks for a connection security level when an address starts with http://. On Most secure, it uses an unencrypted address only on your home network. For people who reach home through a VPN, that page describes two setups:
- Set your local address as the external URL. The app then uses it at home and away, and the security level no longer changes how it connects. Home Assistant warns that if you forget to connect the VPN on a public network, this may expose your credentials.
- Count a VPN as your home network. On Android you can select VPN connected under Home network. It detects any VPN, so a provider’s VPN that doesn’t lead home counts as well.
An HTTPS address avoids both problems. Tailscale’s walkthrough sets one up with Tailscale Serve, and it stays inside your tailnet.
One VPN at a time on Android
Android runs one VPN per profile. The Tailscale app is a VPN app, and so is the WireGuard app. If your provider’s VPN app is in the same profile, connecting it normally stops the tunnel that leads home, and the other way round.
On a phone that leaves a few options:
- Switch between the two apps as you need them.
- Exclude the media app from the provider’s VPN, if that VPN app has split tunneling. The excluded app then uses your normal connection for local and internet traffic alike. That helps on your home Wi-Fi and does nothing for mobile data, and Block connections without VPN blocks excluded apps. A VPN for only one app covers the reverse case.
- Use one VPN app that holds both connections. Tailscale and a VPN at the same time on Android and Tailscale and WireGuard at the same time go through the ways to do it, including a device at home that forwards from your tailnet into another tunnel.
Local and home access in unbraid
unbraid is a VPN client for Android that runs several VPN exits at once and assigns apps to them. It has a Tailscale client built in and can hold a WireGuard tunnel to your home, so a provider’s exit and the way home share Android’s one VPN slot. You bring a supported provider account, including Proton VPN Free, or your own server.
The settings for this page are under Settings, Local & home access.
On the same Wi-Fi
Local network bypasses the VPN, under This network, is on to start with. Private IPv4 addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), IPv4 link-local addresses, multicast and broadcast then use the network the phone is on. It’s a fixed list, not a reading of the Wi-Fi you’re connected to. Lookups that go through unbraid for names ending in .local, .lan, .home.arpa or .fritz.box are sent to the phone’s own resolver. We haven’t tested whether a name like homeassistant.local resolves this way, so use the address if it doesn’t.
Three situations change how local traffic travels:
- Android’s Block connections without VPN is on. unbraid then takes local connections in and sends them out over the phone’s normal network itself. On Android 17 it needs the Nearby devices permission to do that.
- An app is set to Block. Block the local network too is on to start with, so a blocked app can’t reach devices on your Wi-Fi either. While an app is blocked, local traffic from the other apps passes through unbraid, and casting or printing may not find devices. Turn the switch off to let the local network bypass unbraid again. Blocked apps can then reach local devices.
- Android leaves an app outside unbraid. That is the usual case for an app you set to Direct. It uses your normal connection, reaches local devices as it would with no VPN, and doesn’t get the home connections described below. An app that only follows a Direct default route passes through unbraid and does get them.
On Android 17, an Allow Nearby devices row appears on this page while the permission is missing and unbraid needs it: for Tailscale, a home tunnel, a server of yours on the local network, or local access under Android’s block.
Away from home
Two rows under Home, from anywhere give the phone a way home.
- Through Tailscale opens the Tailscale page. Turn on Reach your tailnet and sign in. Once unbraid is connected, apps that pass through it can reach the tailnet devices your access rules allow, at their
100.x.y.zaddresses. For devices behind an approved subnet router, go back to Local & home access, open Advanced settings and add the router’s home range under Home subnets through Tailscale. - Home WireGuard tunnel imports the
.conffile from your router. unbraid sends the private IPv4 ranges in itsAllowedIPsthrough that tunnel.
Other destinations keep following your app and website routes. For a home address, the home tunnel’s ranges come first, then your tailnet and its home subnets, then the local network. If 192.168.1.20 is inside a home range you set up, it goes home. Otherwise it goes to the network the phone is on, as long as Local network bypasses the VPN is on.
That order matters when a hotel’s Wi-Fi uses the same range as your home. The address alone can’t say which network you mean, and the home range wins.
unbraid doesn’t check whether you are at home. For apps that pass through it, a configured home range stays on the tunnel or your tailnet on your home Wi-Fi as well. We haven’t tested that on a home network. If the WireGuard config points at your router’s public address, the router has to accept that connection from inside your home too. If a home device stops answering only when you’re at home, check this first.
The phone can open connections to home devices and gets their replies. Devices at home can’t open new connections to the phone through unbraid. Apps that pass through unbraid use IPv4 only. The two guides linked in the previous section have the full steps and the import rules, and unbraid needs Android 13 or newer on a 64-bit ARM phone.
What we checked
The unbraid section was checked against the code of the released app. What this page says about other apps comes from the pages linked next to each statement. We didn’t run these steps on a phone for this guide, and we didn’t test discovery, casting or printing behind any VPN app.
Questions
Does a VPN affect your local network? It can. A full-tunnel VPN can stop your phone from reaching devices on the network it’s connected to. Some VPN apps have a setting that lets local traffic use the Wi-Fi. The other devices on the network aren’t affected.
How do I enable local network access on Android? Look for a LAN or local network setting in your VPN app. If connections still fail, check Android’s Block connections without VPN and, on Android 17, the Nearby devices permission of the app that talks to your devices.
Do I need a Tailscale exit node for Jellyfin? No. Install Tailscale on the Jellyfin server or use a subnet router, and open the server by its address. An exit node is for sending your internet traffic through another device.
Why does my NAS open by address when the app can’t find it? Finding devices usually relies on broadcasts or multicast, which a VPN doesn’t normally carry. Enter the address in the app by hand.
Bring your own VPN
unbraid is a VPN client with no servers of its own. You sign in with an account you already have, or add your own server. It has built-in support for AirVPN, ExpressVPN, IVPN, Mullvad, NordVPN (affiliate link), Private Internet Access, Proton VPN (Free included), Surfshark (affiliate link) and Windscribe. For CyberGhost, you import config files from your account, with step-by-step help in the app.
We earn a commission if you subscribe through a link marked (affiliate link). It helps keep unbraid free. If you're about to subscribe to a VPN service, thank you for considering doing it through one of them.