Pair a phone¶
Pairing gives the phone a device token and the daemon's certificate fingerprint. It happens once per phone and machine. After that the app reconnects on its own.
Before you start¶
- The daemon is running:
porthole statusanswers. - The phone can reach the computer on a private address: the same Wi-Fi network, or a VPN such as WireGuard, Tailscale or NetBird. The daemon refuses connections from public addresses.
- TCP port 7433 is open in the computer's firewall on that interface.
Scan the code¶
On the computer:
prints a QR code, how long it is valid, and the same values as text:
Scan with the Porthole app within 2m0s.
Manual entry: host 100.64.0.5 or 192.168.1.20 port 7433 code ABCDEFGH
Certificate fingerprint: …
In the app, tap Scan pairing code on the empty home screen, or Machines →
Pair machine, and point the camera at the QR. The code is single use and
expires after two minutes. Run porthole pair again if you miss the window.
If the output ends with warning: no VPN or private address is bound; is your
VPN up?, the daemon found nothing but loopback to listen on. Bring the VPN up
and restart the daemon.
Enter the values by hand¶
Tap Enter manually on the pairing screen. The fields are:
| Field | From porthole pair |
|---|---|
| Host (VPN address) | one of the host values; pick the one on the network the phone is on |
| Port | port (7433 unless you changed it) |
| Certificate fingerprint | the Certificate fingerprint line |
| Pairing code | code |
| This device's name | any name; porthole devices lists it |
Options¶
porthole pair --label "pixel"attaches a label to the pairing.porthole pair --jsonprints the pairing payload as JSON instead of a QR.
What pairing establishes¶
- The app pins the daemon's self-signed TLS certificate by fingerprint and refuses any other certificate.
- The app receives a random device token, stored in the phone's keychain or keystore. The daemon stores a hash of it.
- The two sides agree on a key for encrypting push notices, so a relay cannot read them.
See Security for the full model.
Manage paired devices¶
porthole devices # ID, name, paired date, last seen
porthole devices revoke <id> # closes that phone's connections within a second
On the phone, Machines lists every daemon you have paired: rename it, mute its notifications, turn auto-connect on or off, or forget it. One phone can pair with any number of machines; their sessions appear in one list.