Connect across networks
A phone and a desktop find each other only inside one local network. The connection itself is an ordinary TCP connection to port 7360, so it works over any path on which one device can reach the other by address. Discovery and connectivity has the background.
| Situation | Works | How |
|---|---|---|
| Same Wi-Fi or wired network | Yes | Devices find each other |
| Same network, discovery blocked by the router | Yes | Manual address or QR code |
| Different networks joined by a VPN or mesh network (WireGuard, Tailscale, ZeroTier and similar) | Yes | Manual address |
| Phone on mobile data with no VPN, desktop at home | No | A self-hosted relay is on the roadmap and has not shipped |
| Guest Wi-Fi or a network with client isolation | No | The network keeps the devices apart. Use another network |
Tetheron has no account and no cloud service, so nothing connects the two devices when neither can reach the other’s address.
Before you begin
- Tetheron is installed on both devices.
- The desktop’s firewall allows TCP port 7360: see Install Tetheron on Linux.
Connect by address on the same network
Use this when both devices are on one network and still do not see each other, for example because the router drops multicast traffic. Pairing by QR code gets round the same problem, because the code contains the desktop’s addresses.
-
Find the desktop’s address. In a terminal on the desktop, run:
hostname -IThe command prints the desktop’s IP addresses. On a home network the one you need usually starts with
192.168.or10.. -
On the phone, open Find your PC (in the wizard) or tap Add PC on the home screen. Tap Enter address.
-
Type the address, for example
192.168.1.20, and tap Connect. Add the port ashost:portonly if you changed it from 7360. -
If the devices are already paired, the phone app goes to its home screen and shows the desktop as Connected. If they are not, both devices show the six-digit code: continue with Pair by six-digit code.
You can also give the desktop the phone’s address:
- Find the phone’s address in the phone’s Wi-Fi settings, in the details of the connected network.
- On the desktop, click Add device (the + button in the sidebar), then Add device by address….
- Enter the address and click Add. The desktop dials the address at once and remembers it.
From the command line, where <address> is host or host:port:
tether-cli add <address>
Tip
Reserve a fixed address for the desktop in your router’s DHCP settings. A manual address stops working when the desktop gets a different one.
Connect over a VPN or mesh network
A VPN or mesh network that gives both devices an address on a shared private network carries the connection across the internet. Discovery does not cross such a network, so you enter the address once.
-
Install and connect the VPN or mesh client on both devices. Check that the phone can reach the desktop, for example by opening another service on the desktop from the phone.
-
Find the desktop’s address on that network. The VPN or mesh client shows it, and
hostname -Ilists it next to the local addresses. -
On the phone, tap Add PC, then Enter address, type that address and tap Connect.
-
If the devices are not paired yet, both now show the six-digit code. Compare and confirm it as described in Pair and unpair devices.
If the firewall on the desktop filters the VPN interface separately, allow TCP port 7360 on it as well.
Limits:
- A phone VPN that does not lead to your desktop routes traffic away from the local network, and the phone cannot reach a desktop on the same Wi-Fi. Some ad blockers work as a local VPN and have the same effect. Exclude the app from the VPN, or switch the VPN off.
- Call audio travels over Bluetooth and needs the phone within Bluetooth range of the desktop. Answering, declining and dialling from the desktop work at any distance.
- The enhanced tier uses the phone’s Wireless debugging, which Android ties to the Wi-Fi network the phone is on. Expect it to work only with both devices on the same network.
- Photos, files and screen mirroring use the same connection, and so the same data allowance on a metered path.
Stop announcing the desktop
The desktop announces itself on the local network so that phones can find it. To stop that, open Preferences in the desktop app and switch off Discoverable, or run:
tether-cli config discoverable false
A phone that is not paired yet then needs the QR code or the desktop’s address.