Network Issues
Diagnose and fix network connectivity problems between your phone and your system.
Run Diagnostics First
Start with the link status and the focused doctor profiles:
broski-link status
broski doctor --profile network
broski doctor --fixbroski-link status shows whether the bridge is up, whether the relay is connected, the local addresses phones can use, and the route of each paired phone. The doctor checks port conflicts, the background service, and the local hook listener.
Local Connection (Same Network)
The phone first tries the local addresses stored when you paired. Check these in order:
| Symptom | Cause | Fix |
|---|---|---|
| Link shows the relay, not the local network | Phone and Mac are on different networks or subnets | Join the same WiFi as your Mac |
| Never connects locally | Firewall blocks the Broski Link port (default 18275) | Allow incoming connections for broski-link |
| Stopped working after a router change | Your Mac got a new address | Run broski-link pair again to store the new addresses |
| Guest or isolated WiFi | Client isolation blocks device-to-device traffic | Use a normal network, or set up a relay |
Corporate Network / Firewall
Company networks often block device-to-device traffic. The relay route needs only outbound HTTPS/WebSocket (wss://) from both your phone and your Mac, which most firewalls allow.
- • Configure a relay in
~/.broski/link/config.jsonso the phone has a route that does not depend on the local network. - • Make sure outbound
wss://to the relay host is allowed on the network your Mac is on.
VPN Conflicts
A VPN on the phone or the Mac can hide the local network from the other device. Broski then falls back to the relay.
- • Pause the VPN on the phone to test whether the local route works.
- • Allow local network access in the VPN app if it has that option.
- • Keep the relay configured so the connection works either way.
Relay Issues
| Symptom | Check | Fix |
|---|---|---|
| Relay shows as not connected | broski-link status | Check the relay URL in ~/.broski/link/config.json, then broski restart |
| Phone cannot use the relay | QR code was created before the relay was configured | Run broski-link pair and scan the new code |
| Machine shows as asleep | The Mac went to sleep | Wake it, or keep it awake while you are away |
Testing Connectivity
# Is the service running?
broski status
# Is the Link port listening? (default 18275)
lsof -nP -iTCP:18275 -sTCP:LISTEN
# Watch the link log
tail -f ~/.broski/logs/link.logConnection Drops
| Cause | What happens | Fix |
|---|---|---|
| Phone switches networks | The app reconnects on its own | Wait a few seconds |
| Mac sleeps | The machine shows as asleep | Keep the Mac awake while you work |
| Weak WiFi | Frequent reconnects | Move closer to the router or use a wired connection |