Tailscale, explained

October 1, 2026  ·  networkingvpn

Tailscale is the tool that makes "localhost on which machine?" a non-question. It's a mesh VPN: install it on your devices and they join a private network — your tailnet — where every device can reach every other device directly and encrypted, no matter where in the world they happen to be.

The problem it kills

You've got a laptop, a home server, maybe a VPS. You want them to talk to each other securely.

The old way: static IPs or dynamic DNS, port forwarding on your router, firewall rules, SSH tunnels you set up at 1am and forgot about, or a VPN server you now have to maintain and patch. Every new device is another round of configuration.

And here's the tie-in to my localhost OAuth post: over plain SSH, "localhost" is ambiguous — which machine's loopback do you mean? Tailscale hands every machine a stable name and address, so there's no ambiguity at all. ssh homeserver just works, from a café in another country, exactly like you're on the couch next to it.

How it actually works

Three ideas:

  1. WireGuard under the hood. Every device generates a keypair and gets a stable 100.x.y.z address. Traffic between devices travels in encrypted WireGuard tunnels — a modern, tiny, fast VPN protocol, and the crypto means nobody in the middle can read it.
  2. A control plane that never sees your traffic. Tailscale runs a coordination server that handles the hard-but-boring parts: proving who you are (sign in with Google, GitHub, etc.), keeping track of your devices, swapping public keys between them, and enforcing access rules. It coordinates the network; your data flows peer-to-peer and never passes through it. This distinction is the whole security story.
  3. NAT traversal, with a relay fallback. Most devices hide behind NAT. Tailscale punches direct UDP connections through it (hole punching). When a NAT is too stubborn, traffic falls back to DERP — Tailscale's relay servers. Still end-to-end encrypted (the relay can't read anything), just a bit slower.

Plus MagicDNS: every device gets a name like laptop.tail8f3a2.ts.net. No more memorizing IPs.

flowchart LR
    L[💻 Your laptop
100.64.0.1] <-->|WireGuard tunnel
direct, encrypted| S[🖥️ Home server
100.64.0.2] L -.->|NAT too stubborn?| D[📡 DERP relay
encrypted — relay can't
read your traffic] D -.-> S C[☁️ Tailscale control plane
identity · keys · ACLs] -.->|coordinates only
never sees traffic| L C -.-> S style L fill:#3a2a20,stroke:#c98a4b,color:#ffe9d2 style S fill:#3a2a20,stroke:#c98a4b,color:#ffe9d2 style D fill:#2a1d18,stroke:#8a6a45,color:#ffd9a8 style C fill:#2a1d18,stroke:#8a6a45,color:#ffd9a8
How two devices connect: direct WireGuard when possible, DERP relay when NAT won't cooperate, control plane coordinating throughout.

The greatest hits

Verdict: install, log in, ping your server by name — it genuinely just works, and the free personal tier is generous. It's the closest thing to all your computers simply being here, wherever "here" is.