guides · getting started

Pair a client

A 6-digit PIN, approved once on the host. After that, your devices recognise each other on any network.

Pairing is how two machines learn to trust each other. It happens once per device pair; every later connection authenticates automatically from pinned keys.

Pairing over the internet? Enrol your rendezvous first. A pairing token carries the rendezvous details the host knew at the moment it was minted, so one generated before the bundle is enrolled only works on your own network. Do it in order — deploy the rendezvous, enrol its bundle, then mint tokens. On your own LAN this doesn’t apply; carry on below.

Pair

PIN pairing is for a client on the same network as the host. From anywhere else — the internet, a Tailscale or other overlay address, a relayed connection — the host refuses a PIN request outright, and you pair with a pairing token minted on the host’s Pairing page instead. That keeps a stranger who can reach the host from putting approval prompts on your screen.

  1. In the client — Windows, Mac, or iOS — add the host by address: <host-ip>:48010, the address from ipconfig / your network settings.
  2. The client mints a 6-digit PIN and shows it on its own screen.
  3. On the host, approve the PIN within 60 seconds via the admin UI at https://127.0.0.1:48011/pairing — the pending request appears in a table; type the digits and click Approve. From an admin shell, nearzero-host pair approve <pin> does the same.
  4. Both peers pin each other’s identity and the client immediately reconnects to stream.

The PIN is never sent over the network. Each side proves inside the handshake that it knows it — a wrong PIN fails cryptographically, on both ends, with a clean error.

First-time pairing, by PIN or by token, uses a password-authenticated key exchange, so a PIN or code only ever allows one guess per attempt.

Why you never re-pair

The pairing stores the host’s identity, not its address. If the client later reaches the same host at a different IP — LAN at home, Tailscale from a café, DHCP handing out something new — it recognises the pinned identity automatically and remembers the new address alongside the old. Multi-network setups never trigger a second pairing.

If something refuses to connect

Next: put a connection password on top, or reach your host across the internet.