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:

bash
broski-link status
broski doctor --profile network
broski doctor --fix

broski-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:

SymptomCauseFix
Link shows the relay, not the local networkPhone and Mac are on different networks or subnetsJoin the same WiFi as your Mac
Never connects locallyFirewall blocks the Broski Link port (default 18275)Allow incoming connections for broski-link
Stopped working after a router changeYour Mac got a new addressRun broski-link pair again to store the new addresses
Guest or isolated WiFiClient isolation blocks device-to-device trafficUse a normal network, or set up a relay
No relay needed at home
A relay is only used when the phone cannot reach your Mac directly. On one network, Broski connects directly.

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.json so 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

SymptomCheckFix
Relay shows as not connectedbroski-link statusCheck the relay URL in ~/.broski/link/config.json, then broski restart
Phone cannot use the relayQR code was created before the relay was configuredRun broski-link pair and scan the new code
Machine shows as asleepThe Mac went to sleepWake it, or keep it awake while you are away

Testing Connectivity

bash
# 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.log

Connection Drops

CauseWhat happensFix
Phone switches networksThe app reconnects on its ownWait a few seconds
Mac sleepsThe machine shows as asleepKeep the Mac awake while you work
Weak WiFiFrequent reconnectsMove closer to the router or use a wired connection

Related