Connection Issues
Can't connect? Here's how to diagnose and fix connection problems.
Quick Diagnostics
Run these commands on your Mac:
# Bridge, relay, local addresses and each phone's route
broski-link status
# Paired phones
broski-link devices
# Service, port and TLS checks
broski doctor --profile network
# Apply safe automatic fixes
broski doctor --fix
# Export diagnostics bundle
broski doctor --exportConnection States
The app shows the state of the link to each paired computer:
| State | What It Means | User Action |
|---|---|---|
| Connected | Linked to your Mac, directly or through the relay | None needed |
| Connecting | Establishing the encrypted link | Wait a few seconds |
| Asleep | Your Mac went to sleep | Wake it |
| Offline | Your Mac is not reachable by either route | Check that the Mac is on and that broski-link is running |
| Disconnected | No active link | Open the computer in the app to reconnect |
Cannot Connect to Your Mac
broski status
broski-link status
# If the service is not installed
broski installbroski-link status shows the bridge as up, starting, crashed or down. If it crashed, the reason is shown and broski-link restarts it.
broski restart
broski logs --followFor the direct route, both devices must be on the same network. Otherwise the phone needs a relay (see Remote Access).
# macOS: Check firewall status
/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
# Linux (UFW): Check firewall status
sudo ufw statusIf the phone is not listed in broski-link devices, it was revoked or never finished pairing. Run broski-link pair and scan the new QR code.
Solutions by Cause
| Cause | Solution |
|---|---|
| Service not running | broski install |
| Wrong network and no relay | Join the same WiFi as the Mac, or configure a relay |
| Firewall blocking | Allow incoming connections for broski-link (default port 18275) |
| Phone was revoked or unpaired | broski-link pair |
| Stale connection | Force quit the app and reopen it |
Port Already in Use
Bridge port 18274 is already in use.Port 18274 is the bridge's loopback listener (used by agent hooks). Phones never connect to it, so changing it does not affect pairing.
Diagnosis
# Find what's using the port
lsof -nP -iTCP:18274 -sTCP:LISTENSolutions
# Get the PID from lsof output, then:
kill <PID>If you accidentally pressed Ctrl+Z instead of Ctrl+C:
# List suspended jobs
jobs
# Bring to foreground and stop properly
fg
# Then press Ctrl+C# Random free port
broski --port 0
# Specific port
broski --port 18276Link Keepalive
Broski Link detects dead connections itself:
| Timer | Value | Purpose |
|---|---|---|
| Ping | 15 seconds | Keepalive in both directions |
| Dead connection | 45 seconds | No answer = the session detaches and the app reconnects |
# Follow logs for connectivity issues
broski logs --follow
tail -f ~/.broski/logs/link.logConnection Keeps Dropping
| Cause | Diagnosis | Solution |
|---|---|---|
| Network instability | Check WiFi signal strength | Move closer to router or use wired |
| WiFi switching | Phone auto-switching networks | Lock WiFi network in phone settings |
| Background app killing | iOS/Android battery saving | Disable battery optimization for Broski |
| Mac sleeping | State shows Asleep | Keep the Mac awake |
Firewall Configuration
Only the direct route needs an inbound rule: broski-link listens on port 18275 by default (change it with lan_port in ~/.broski/link/config.json). The relay route needs outbound connections only.
macOS
- System Settings → Network → Firewall
- Click "Options..."
- Add the broski-link binary to allowed applications
- Or enable "Automatically allow built-in software"
Linux (UFW)
# Allow the Broski Link port
sudo ufw allow 18275/tcp
# Check status
sudo ufw statusLinux (firewalld)
# Allow the Broski Link port
sudo firewall-cmd --permanent --add-port=18275/tcp
sudo firewall-cmd --reload
# Check status
sudo firewall-cmd --list-portsQR Code Scanning Issues
| Issue | Solution |
|---|---|
| Camera won't focus | Ensure adequate lighting, clean camera lens |
| Code too small | Move closer or increase terminal font size |
| Expired QR error | A pairing QR expires after 10 minutes. Run broski-link pair again |
| Already used | A pairing QR works once. Run broski-link pair again |
| "Old Broski QR" message | The code came from an older version. Update broski on your Mac and scan the new code |
| Partial scan | Hold phone steady for 2-3 seconds |
Paste the Link Instead
If scanning fails, copy the broski://pair?... link that broski-link pair prints and use the paste button on the scan screen.
Still having issues?
Collect this debug info before contacting support:
broski --version
broski-link status --json
broski doctor --exportEmail: broskiappp@gmail.com