Remote Access
Broski Link connects your phone to your Mac directly on your network, or through an end-to-end encrypted relay when you are away. No VPN and no port forwarding.
How It Works
The broski-link service runs on your Mac. It starts the bridge, restarts it if it crashes, and is the only process your phone talks to. The bridge itself listens on your Mac's loopback interface and a local socket only, so it is never exposed to your network.
| Local network | Relay | |
|---|---|---|
| Route | Phone to your Mac directly | Phone and Mac both connect out to a relay |
| Encryption | Noise, end to end | Noise, end to end (the relay cannot decrypt it) |
| Works from anywhere | No (same network) | Yes |
| Needs a relay configured | No | Yes |
| Phone app required | Broski only | Broski only |
The phone tries the local addresses from the pairing QR first and falls back to the relay when none of them answer. You do not choose a route; Broski picks the one that works.
Setup
This registers broski-link with launchd (macOS) or systemd (Linux).
broski installThe code is single-use and expires after 10 minutes.
broski-link pairThe app stores the pairing and reconnects on its own from then on.
Using a Relay
A relay lets your phone reach your Mac when they are not on the same network. Point the service at one by adding its URL to ~/.broski/link/config.json on your Mac:
{
"relay": "wss://relay.example.com"
}Restart the service, then run broski-link pair again. Pairing QR codes include the relay address, so phones paired afterwards can use it.
broski restart
broski-link pairCheck the Connection
# Machine, bridge, relay and session status
broski-link status
# Paired phones
broski-link devices
# Remove a phone (use at least the first 8 characters of its id)
broski-link revoke <device id prefix>broski-link status shows whether the bridge is up, whether the relay is connected, and which route each paired phone is using.
Keeping Your Mac Reachable
Your Mac has to be awake for the phone to reach it. If you use a Mac laptop with the lid closed, a keep-awake tool such as Amphetamine keeps it running.