Skip to content
86% off$349 $48.86code BF2026

Docs

Ferryfox docs25 pages

Add device by IP: error 111 connection refused on Mac

Fix "error code 111, connection refused" when you add a device by IP on a Mac: find which side refuses, check port 53317, Local Network access and the app.

Updated 7 min read

On this page

You typed an IP address into a transfer app and got this:

text
error code 111, connection refused

Maybe it also fails on a Mac where the same steps worked on other Macs, and a cable tool like OpenMTP says "an error while setting up the phone". This page explains what the error means and how to work through it.

Why it happens

Error 111 is the number Linux and Android use for "connection refused". It is not a timeout. Something at that address replied "no one is here on that port." That narrows the causes, most common first:

CauseSymptomFix
Receiving app not running or not set upRefused on every tryOpen it and finish first-run setup
macOS blocks the app from the local networkDevices not found, refused when added by IPTurn on Local Network for the app
Wrong portRefused only with a plain addressAdd :port to the address
Another app holds the portFerryfox shows "Can't receive"Quit the other app, restart Ferryfox
Stale IP addressRefused or timeoutLook up the current address
Network separates devices (guest Wi-Fi, VPN)Devices not listed, errors varyUse the same regular network

The firewall is on the list only as a last item. In the report this page is based on, turning the Mac's firewall off changed nothing. A firewall that silently drops packets usually gives a timeout, not a refusal.

Find out which side is refusing

  • You typed the Mac's IP into another device and got the error. The Mac isn't listening. Work through the fixes below on the Mac.
  • You used File ▸ Add by IP… (⌘K) in Ferryfox and got the error. The other device isn't listening on that port. Open its transfer app and check its settings for the address and port. The Add by IP sheet says: "Find the address in the other app's settings. Add ":port" if it doesn't use 53317."

Ferryfox runs only on Mac, so it can't look inside the app on your phone or PC. If that device refuses, fix its app or port there.

Fix 1: Make sure Ferryfox is running and finished setup

Ferryfox starts listening once you press Continue on onboarding step 3 (Allow Local Network and Notifications). Until then the menu bar popover says "Open Ferryfox to get started".

  1. Look for the ferry icon in the menu bar. If it's missing, open Ferryfox from Applications.
  2. If the window shows the first-run steps, finish all four and click Start Using Ferryfox.
  3. Don't quit the app. Closing the window is fine, because Ferryfox keeps receiving from the menu bar.

The same goes for the other device: its transfer app must be open, on screen if it is a phone, with receiving turned on.

Fix 2: Allow Local Network access

Without Local Network permission, devices can't be found or reached. If you dismissed the macOS prompt earlier, switch it on by hand.

  1. In Ferryfox, choose Help ▸ Can't See a Device….
  2. Look at the Local Network access row. If it shows a warning, click Open Privacy Settings.
  3. Switch Ferryfox on under Local Network.
  4. Click Check Again.

You can also open System Settings and search for "Local Network". If another transfer app on this Mac never got the permission, it fails the same way, so check it there too.

Fix 3: Use the right port

Ferryfox listens on port 53317 by default. If the other device uses a different port, or you changed Ferryfox's port, a plain address won't reach it.

  • Adding a device in Ferryfox: the Add a Device by IP Address sheet accepts host, host:port and [IPv6]:port. For a different port, type for example 192.168.1.40:PORT, with the real port in place of PORT. Ferryfox tries HTTPS, then HTTP, and reports the most telling error.
  • Typing the Mac's address on another device: check Settings ▸ Network ▸ Advanced ▸ Port (valid ports are 1024 to 65535). Changes take effect only after you click Apply, and Apply is disabled while a transfer is running.

Fix 4: Check whether another app holds the port

If another transfer app already uses port 53317 on the Mac, Ferryfox can't listen there. The main window footer shows a coral Can't receive item, and the troubleshooter's Receiving port row says "Another app is using port 53317. Quit other file-transfer apps, then restart Ferryfox."

  1. Quit other file-transfer apps on the Mac.
  2. In the troubleshooter, click Restart Ferryfox on the Receiving port row.

To see what is listening, run this in Terminal. It only reads information, so there is nothing to undo. Replace 53317 if you changed the port:

bash
lsof -nP -iTCP:53317 -sTCP:LISTEN

If Ferryfox is listed, the port is open. If a different program is listed, that is your clash. If nothing is printed, nothing is listening, which matches the refusal and points back to Fix 1.

Fix 5: Check the IP address and the network

A wrong or stale address gives a refusal or a timeout, depending on what answers there. Routers can hand out new addresses.

  1. Get the Mac's current address: open System Settings, go to Wi-Fi, and open Details for the connected network.
  2. Check that both devices are on the same network, not one on a guest network or a VPN. The troubleshooter's VPN and Network type rows flag both, and guest networks often stop devices from seeing each other.
  3. Leave the Firewall row alone unless it reports a block. If it does, click Open Firewall Settings and allow Ferryfox. You don't need to turn the firewall off.

If a transfer works on some Macs but not on one, compare that Mac against the others: Local Network permission, another app on port 53317, and which network it is on. Work Macs are often on a different network from a personal one.

Checklist before you try again

  • Ferryfox (or the other transfer app) is open and finished setup.
  • Local Network access shows no warning in the troubleshooter.
  • The address is current and both devices are on the same regular network, with no VPN.
  • The port matches, with :port added if it isn't 53317.
  • No other app uses the port on the Mac.

Use a route that needs no IP address

  • Share via Link (⌘L): shows a QR code that a phone browser on the same Wi-Fi can open. It uses its own random port and nothing needs installing on the phone. It is plain HTTP, so use it only on a network you trust, and it won't help if the network keeps devices apart.
  • Android Quick Share (Beta): under Settings ▸ Nearby, Appear in Android Quick Share is on by default. On the phone, tap Share ▸ Quick Share and pick the Mac. Same Wi-Fi only.
  • Send via Bluetooth… (⇧⌘B): works with no shared network, for paired Android phones and tablets and Windows or Linux computers. Pair the device in macOS Bluetooth settings first. Above 50 MB it is slow, and iPhone and iPad aren't supported.

Ferryfox can't send to a receiver that requires a PIN, except to paired Ferryfox Macs. That fails with "PIN required or wrong PIN", not a refusal.

If nothing works

Contact the developer of the app that shows the error. For Ferryfox, use MacSuite support. Include the exact error text, the address and port you typed, what the troubleshooter rows show, and the output of the lsof command. For example:

text
Ferryfox: Add by IP fails with "error code 111, connection refused".
Mac: MacBook, macOS version: (your version). Address typed: (IP:port).
Troubleshooter: Local Network access (OK/warning), Firewall, VPN, Network type, Receiving port (results).
lsof -nP -iTCP:53317 -sTCP:LISTEN output: (paste here).
Both devices are on the same Wi-Fi: yes/no. Steps already tried: (list).

Common questions

Does turning off the firewall fix error 111?

Usually not. Refusal means something answered that nothing listens on the port. A firewall that blocks traffic more often causes a timeout. Use the troubleshooter's Firewall row and allow Ferryfox instead of disabling the firewall.

Why does it work on my work Macs but not my personal one?

The difference is usually permission or network: Local Network access missing for the app, another app on port 53317, or a different network such as a guest or VPN connection. Compare those three.

Is error 111 a Ferryfox bug?

It is a standard connection-refused code from the device you tried to reach. Ferryfox shows it when that device has nothing listening on the port.

Why does OpenMTP say "error while setting up the phone"?

OpenMTP talks to the phone over USB, not the network. Unlock the phone, set it to "File transfer" mode and try another cable. An IP address or port won't change that.

Where Ferryfox fits

Ferryfox covers the Mac side: its troubleshooter checks the receiving port, Local Network access, firewall, VPN and network type, and it offers browser-link, Quick Share and Bluetooth routes that need no IP. It can't fix the app on your phone or PC. See Can't see a device? Troubleshooting, Network settings, Add by IP and favourites, Permissions Ferryfox asks for and Share and receive with a browser link.

Every app.
One purchase.