Can't connect to local area network
Use the following instructions to help you determine why you can't establish connection to another device on your local area network (LAN).
-
Ensure there aren't any traditional problems interfering with a local connection.
There are many reasons why devices on the same local area network might be unable to connect. For example, firewall rules, IP address conflicts, network misconfiguration, and DHCP errors can prevent connections between LAN devices.
To test the local connection in isolation, disconnect from Tailscale, then try to connect to the LAN device again.
-
Check if you can connect using the device's Tailscale IP address (instead of its private IP address).
If the device runs Tailscale and you have a subnet router that advertises your LAN, then your device and other LAN devices have two ways to reach each other. Tailscale typically configures the routing table to prefer the subnet router (if accepting subnet routes is enabled).
The Tailscale client drops packets with unexpected source IP addresses (in this example, the device's LAN IP address instead of the device's Tailscale IP address). If the subnet router runs Linux and has SNAT disabled (it can not be disabled on other operating systems), this can lead to a situation where your device's connection attempts successfully reach the LAN device, but it will be unable to respond.
If you do not need a device to use subnet routes, you can disable them by passing
--accept-routes=falseto thetailscale uportailscale setcommands or by disabling the subnets option in the Tailscale client (if applicable).For more information, refer to LAN traffic prioritization with overlapping subnet routes.
-
Ensure the device isn't using an exit node with a configuration that prevents it from connecting to a local device.
If the device uses an exit node, it might not be able to access the private IP of the LAN device because the LAN is untrusted by default when using an exit node. You can resolve this with either of the following methods:
- Pass
--exit-node-allow-lan-access=trueto thetailscale uportailscale setcommands. - Enable the Exit Node LAN access option in the Tailscale client (if applicable). This lets the device send LAN connections directly.
Only enable LAN access if you trust the local network. For example, you might trust your home network, but not a public access Wi-Fi at a coffee shop.
- Pass
