Port 53317 already in use: how to fix it in Ferryfox
Fix "Another app is using port 53317" and "Only one use of each socket is permitted" in Ferryfox: find the app holding the port, quit it, or change the port.
Updated 5 min read
On this page
You open Ferryfox and see a coral Can't receive item in the footer. The troubleshooter's Receiving port row says:
Another app is using port 53317. Quit other file-transfer apps, then restart Ferryfox.
People on Windows who run other apps that use the same transfer protocol report the same clash as "OS error: Only one use of each socket is permitted". In one report, the cause turned out to be a firewall program holding the port. On a Mac the usual cause is simpler: two transfer apps trying to listen on the same number.
Why it happens
Ferryfox listens on TCP port 53317 by default to receive files, and uses the same number for device discovery. A port can only be held by one program at a time, so whichever app starts first wins.
Common causes, most likely first:
- Another transfer app is running on this Mac. Any app that speaks the same open transfer protocol, including the free app that Ferryfox's setup screens point other devices to, defaults to the same port.
- The other app launches at login and grabs the port before Ferryfox starts.
- A leftover process from an app you thought you had quit.
- Some other tool (a developer server, a security or firewall utility) that happens to use 53317. This is less common, and we can't tell from the message which one it is. The
lsofcommand below tells you.
Step 1: confirm the clash
- Click Can't receive in the footer, or choose Help > Can't See a Device….
- Read the Receiving port row.
- "Receiving on port 53317." means the port is fine, and your problem is elsewhere.
- "Another app is using port 53317." means something else has it.
Step 2: quit the other app and restart Ferryfox
- Quit any other file-transfer app on this Mac, from its menu bar icon or app menu.
- In the troubleshooter, click Restart Ferryfox on the Receiving port row.
- Click Check Again. The row should now say "Receiving on port 53317."
Ferryfox only tries to take the port again when it restarts, so quitting the other app alone is not enough.
Find out which program holds the port
If you don't know what is using it, this Terminal command lists the process listening on the TCP port. It only reads information and changes nothing:
lsof -nP -iTCP:53317 -sTCP:LISTENThe COMMAND column names the program. Quit it from its own menu or from Activity Monitor. Processes owned by other users may not appear without sudo. If nothing is listed, check the UDP side, which carries discovery:
lsof -nP -iUDP:53317Step 3: change Ferryfox's port instead
Use this when you want to keep the other app running.
- Open Ferryfox Settings (⌘,) and go to the Network tab.
- Under Advanced, change Port to a number from 1024 to 65535, for example
53318. Anything outside that range shows "Use a port from 1024 to 65535." - Click Apply. Ferryfox reconnects to apply the change.
- Open the troubleshooter and check that the Receiving port row reports the new port.
Apply is disabled while transfers run ("Apply when transfers have finished."). Revert discards a change you haven't applied. To go back, enter 53317 and click Apply.
If you can't change the other side
Add this Mac by address instead. On the sending device, use Ferryfox's File > Add by IP… (⌘K) and enter the address with the port, such as 192.168.1.40:53318. The sheet's hint says to add ":port" when the other app doesn't use 53317. The sheet's Add to Favourites toggle is on by default, so the device is checked directly on later launches, even where multicast discovery is blocked.
Quick reference: symptom, cause, fix
| Symptom | Likely cause | Fix |
|---|---|---|
| Receiving port shows the clash | Another transfer app is running | Quit it, then Restart Ferryfox |
| Clash still shown after quitting the app | Ferryfox hasn't retried yet | Restart Ferryfox, then Check Again |
| Clash returns after a reboot | The other app starts at login | Stop it launching at login, or keep a different Ferryfox port |
| Apply is greyed out | A transfer is running | Wait for it or cancel it |
| Port field rejects your number | Outside 1024 to 65535 | Use a number in range |
| Devices vanished after changing the port | Other devices still use 53317 | Match the port, or use Add by IP… with address:port |
| Port is fine but devices are missing | Firewall, VPN or guest network | Check those rows in the troubleshooter |
What the port doesn't affect
- Share via Link and Receive via Link use a random port, not 53317.
- Send via Bluetooth doesn't use the network port.
Checklist before you try again
- Only one file-transfer app is running on this Mac.
- You restarted Ferryfox after quitting the other app or changing the port.
- The Receiving port row shows "Receiving on port" followed by the number you expect.
- Every device you want to reach uses the same port, or you added it with Add by IP….
- Both devices are on the same network with their transfer app open.
If nothing works
Contact us through the support page. Include the exact text of the Receiving port row, the output of the lsof commands above, the port you set, and what you already tried. You can paste this:
Ferryfox can't receive. The troubleshooter's Receiving port row says
"Another app is using port 53317. Quit other file-transfer apps, then restart Ferryfox."
Mac: macOS version here
What I tried: quit other transfer apps, restarted Ferryfox, changed Port to 53318.
Output of lsof -nP -iTCP:53317 -sTCP:LISTEN is attached.Common questions
Is the port number a security setting?
No. Changing it only avoids a clash and doesn't make transfers safer. Encryption is a separate setting under Settings > Network > Advanced.
Can I run Ferryfox and another transfer app at the same time?
Yes, if they listen on different ports. Give Ferryfox another port as in Step 3, and set matching ports on the devices that need to reach it.
Does a firewall cause this message?
The message means a program already holds the port. In the Windows report a firewall program was that program. A firewall that blocks incoming connections is a different problem, and the troubleshooter's Firewall row covers it.
Where else should I look if devices still don't appear?
Read Can't see a device? Troubleshooting and Network settings, Add by IP and favourites. The Settings reference lists every Network option and its default.
Ferryfox is part of MacSuite, and the troubleshooter's Receiving port row and the Port setting are built for exactly this case. See Ferryfox for what else it does.