Guides4 min read
A quick guide to Tailscale
Tailscale puts your machines on one private network wherever they are. Install it, reach devices by name, then add SSH, exit nodes, subnet routes and sharing a local port.

Tailscale puts your laptop, phone, servers and home machines on one private network, wherever they are. Each device gets a stable address and a name, and they connect to each other directly over WireGuard. There are no ports to open and no VPN server to run. It is free for personal use.
A good first use: connect your phone, and you can safely open the work your agents are building on your computer as if it were local. Sharing a local port, near the end, shows how.
Your private network is called a tailnet. Everything below happens inside it unless a step says otherwise.
Install and connect
On macOS, Windows, iOS and Android, install the app from the download page and sign in. On Linux:
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale uptailscale up prints a link. Open it and sign in with the same account you used on your other devices, and the machine joins your tailnet. Do this on at least two devices.
Check that it works
status lists every device with its address and whether it is online, ip prints this machine's address, and ping tells you whether another device is reachable. In the examples homelab stands for the name of another machine on your tailnet.
tailscale status
tailscale ip -4
tailscale ping homelabAddresses are in the 100.x.y.z range and do not change. You rarely need them, because MagicDNS lets you use the machine name instead:
ssh me@homelab
curl http://homelab:8080Anything listening on the machine is reachable this way from your other devices, and from nowhere else.
Stop servers from dropping off
A device has to sign in again every 180 days. That is fine for a laptop and a nuisance for a server you only reach through Tailscale. In the admin console, open the machine's menu and choose Disable key expiry.
SSH without managing keys
On the server:
sudo tailscale set --sshNow ssh me@homelab from any of your devices is authenticated by Tailscale, with no keys to copy around. The normal SSH daemon keeps working alongside it.
Route your traffic through a machine you trust
An exit node sends all of your internet traffic through another device on the tailnet. It is useful on public Wi-Fi, or when you want to appear to be at home. On the machine that will be the exit node:
sudo tailscale set --advertise-exit-nodeApprove it in the admin console under the machine's route settings. Then, on the device that should use it:
tailscale set --exit-node=homelab
tailscale set --exit-node= # back to normalThe apps have the same switch in their menu. A Linux exit node also needs IP forwarding turned on:
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.confReach devices that cannot run Tailscale
Printers, cameras and the router itself cannot install anything. A subnet router is a machine on that network which passes traffic on to them. It needs the same IP forwarding as an exit node.
sudo tailscale set --advertise-routes=192.168.1.0/24Approve the route in the admin console. Linux clients ignore advertised routes until you run sudo tailscale set --accept-routes; the other platforms accept them by default.
Share a local port
Two commands put HTTPS with a real certificate in front of whatever is running on a local port, at an address like https://homelab.your-tailnet.ts.net. Serve makes it available to your tailnet, and funnel opens the same address to the internet.
tailscale serve 3000
tailscale funnel 3000Serve is what makes a phone useful while coding agents work on your machine. With Tailscale on the phone, you can open the app they are building from anywhere, as if it were running locally, and nobody outside your tailnet can reach it.
Funnel is the only command in this guide that exposes anything publicly, so stop it when you are done. The first run of either prints a link to switch the feature on.
When something does not connect
- Run
tailscale statuson both ends. A device that is offline or has an expired key shows up there. tailscale pingsaysvia DERPwhen the connection is going through Tailscale's relays because the two devices could not reach each other directly. It works, only slower.tailscale netcheckreports what the local network allows.tailscale downdisconnects without signing out, andtailscale upbrings it back.
Related reading