Open Port 53317 (TCP/UDP) in Windows, ufw and firewalld
Mac can't see your Windows or Linux PC? Add inbound TCP and UDP rules for port 53317 in Windows Defender, ufw or firewalld, and set Wi-Fi to Private.
GuideUpdated 8 min read
On this page
You open the transfer app on your Mac and the PC never shows up. Or the Mac sees the PC, but sending fails with "Couldn't reach the device" or "Timed out". Other phones and computers work fine. When one device fails and the others don't, the firewall on that device is the usual cause.
53317 is Ferryfox's default port. The free transfer app Ferryfox suggests for Windows and Linux uses the same port (see Use Ferryfox with iPhone, Android, Windows and Linux). Ferryfox checks only the Mac's side of the connection. It cannot test the PC's firewall.
Why the PC's firewall hides it from the Mac
Four causes, most common first:
- No inbound rule for the port. Windows Defender Firewall and Linux firewalls drop unsolicited incoming connections by default. Two things must reach the PC. TCP carries the transfer itself. UDP carries the multicast announcements that make devices appear on their own.
- The wrong Windows network profile. Windows applies rules per profile. A rule or app permission that covers only Private does nothing while your Wi-Fi is classed as Public. Windows often classes a new network as Public.
- The rule is in the wrong firewalld zone. On Fedora, openSUSE and some gaming distros, a rule added to a zone your connection isn't using has no effect.
- The network itself. Guest networks and Wi-Fi "client isolation" stop devices reaching each other. No firewall rule fixes that.
People on forums describe the same pattern. In one case, ufw disable made the transfer work, which proved the firewall was the cause. Another report on a Steam Deck traced the problem to the firewalld zone. Others fixed it with TCP and UDP rules on Windows.
Step 1: Test whether the PC is blocking the port
Find the PC's IP address. On Windows, run ipconfig in Command Prompt and read the IPv4 Address of your active adapter. On Linux, run hostname -I.
Open the transfer app on the PC. Then run this in Terminal on the Mac, using the PC's address:
nc -vz 192.168.1.40 53317nc -vz tries to open a TCP connection and reports whether it worked, without sending data. It changes nothing on your Mac.
| Result | Meaning | Next step |
|---|---|---|
| "succeeded" | TCP 53317 is reachable | Check the Mac-side causes below |
| No answer (press Control-C after about 10 seconds) | A firewall is dropping it, or the network isolates devices | Add the rules below |
| "Connection refused" | The PC answered, but nothing is listening | Check the app is open and uses port 53317 |
Step 2: Windows, set the profile and add inbound rules
Set the network profile to Private
- Open Settings and go to Network & internet.
- Open the properties of your connected network, under Wi-Fi or Ethernet.
- Set Network profile type to Private network.
Labels differ a little between Windows 10 and 11. Do this only on a network you trust, such as home or office. Never mark café or hotel Wi-Fi as Private. To check from PowerShell, run Get-NetConnectionProfile and read the NetworkCategory line.
Add the rules with PowerShell
Open PowerShell as administrator and run both lines:
New-NetFirewallRule -DisplayName "File transfer 53317 TCP" -Direction Inbound -Protocol TCP -LocalPort 53317 -Action Allow -Profile Private
New-NetFirewallRule -DisplayName "File transfer 53317 UDP" -Direction Inbound -Protocol UDP -LocalPort 53317 -Action Allow -Profile PrivateEach command creates an inbound rule for port 53317 on Private networks only. Microsoft documents New-NetFirewallRule as the cmdlet that creates an inbound or outbound firewall rule; the full parameter list is in Microsoft's New-NetFirewallRule reference. On a work PC joined to a domain, use -Profile Private,Domain. To undo:
Remove-NetFirewallRule -DisplayName "File transfer 53317 TCP"
Remove-NetFirewallRule -DisplayName "File transfer 53317 UDP"Or add the rules with the wizard
- Press Start, type Windows Defender Firewall with Advanced Security, and open it.
- Select Inbound Rules, then New Rule… in the right pane.
- Choose Port and click Next.
- Choose TCP, select Specific local ports, type
53317, and click Next. - Choose Allow the connection and click Next.
- Tick Private (and Domain on a work PC). Leave Public unticked, then click Next.
- Name it "File transfer 53317 TCP" and click Finish.
- Repeat steps 2 to 7 with UDP.
Step 3: Linux with ufw
sudo ufw allow 53317/tcp
sudo ufw allow 53317/udp
sudo ufw reloadThis opens the port on all interfaces. To limit it to your home network, run these two lines instead of the first two above, changing 192.168.1.0/24 to your subnet:
sudo ufw allow from 192.168.1.0/24 to any port 53317 proto tcp
sudo ufw allow from 192.168.1.0/24 to any port 53317 proto udpCheck the result with sudo ufw status. To undo the first version, run sudo ufw delete allow 53317/tcp and sudo ufw delete allow 53317/udp. For the subnet version, repeat the same rule with delete after ufw.
Step 4: Linux with firewalld (Fedora, openSUSE, Steam Deck)
First see which zone your connection is in:
firewall-cmd --get-active-zonesThen add the ports to that zone. Replace public with the zone name from the previous command:
sudo firewall-cmd --permanent --zone=public --add-port=53317/tcp
sudo firewall-cmd --permanent --zone=public --add-port=53317/udp
sudo firewall-cmd --reload--permanent keeps the rule after a reboot, and --reload applies it now. To undo, run the same commands with --remove-port. To confirm the app is listening, run ss -lntu | grep 53317 while it is open. On a Steam Deck, do this in desktop mode and check the active zone before adding the ports.
What the Mac-side troubleshooter checks
Open it from Help ▸ Can't See a Device…, or from the Can't See Your Device? link on the empty board. If every row passes and the nc test fails, the cause is the PC's firewall or the network between the two devices.
| Check | What it tells you |
|---|---|
| Local Network access | Whether macOS is blocking Ferryfox from the local network |
| Firewall | Whether the macOS firewall is off, allows Ferryfox, or blocks incoming connections |
| VPN | Whether a VPN is active, which can hide devices |
| Network type | Whether this looks like a guest or sign-in network |
| Receiving port | Whether Ferryfox is receiving on 53317 or another app holds it |
If the PC can't see your Mac, check Settings ▸ Devices ▸ Visible to. Trusted Devices or Hidden keeps a new PC from finding the Mac. The default is Everyone.
When multicast is blocked: Add by IP and Favourites
Some networks block multicast, so devices never announce themselves. If no device answers, Ferryfox scans the local subnet over HTTP(S). You can also skip discovery:
- Choose File ▸ Add by IP… (⌘K).
- Enter the PC's address, for example
192.168.1.40. If the other app uses a different port, add it as192.168.1.40:PORT. - Leave Add to Favourites on (the default) and click Add.
Ferryfox checks Favourites directly at launch, when the window or popover appears (at most once a minute) and when the network changes. They show up even where multicast doesn't work. Manage them in Settings ▸ Network ▸ Favourites.
Add by IP gets around missing UDP announcements only. It still connects over TCP, so a PC that blocks inbound TCP 53317 will fail with "Couldn't reach the device" or "Timed out". The TCP rule is still needed.
Ferryfox is part of MacSuite and can be tried free for 7 days. Its troubleshooting page lists every check and error message.
Checklist before you try again
- The transfer app is open on the PC.
- Windows network profile is Private (or the Linux zone matches the active one).
- TCP and UDP 53317 rules exist, not just one.
- No VPN is active on either machine.
- Both devices are on the same non-guest network.
- The Mac's Visible to is Everyone if the PC must find the Mac.
- If you changed the port in Settings ▸ Network ▸ Advanced ▸ Port, the PC rule uses that port.
If nothing works
- Guest network or client isolation. Move both devices to the main network. If you can't, send over Bluetooth works with no shared network, but only Mac to PC, files only, and slowly.
- Port clash. Only one app can hold 53317 on a machine. Ferryfox reports "Another app is using port 53317. Quit other file-transfer apps, then restart Ferryfox."
- Receiver needs a PIN. Ferryfox can't send to a receiver that requires a PIN (paired Ferryfox Macs are the exception). It fails with "PIN required or wrong PIN". Turn the PIN off for the transfer, or send from the PC to the Mac.
If the nc test succeeds and Ferryfox still errors, contact MacSuite support. Include the exact text from the Couldn't send to alert, your macOS version and the PC's OS. Here is a message you can copy:
Ferryfox on my Mac can't reach my PC.
Mac: macOS (version), Ferryfox (version)
PC: (Windows 11 / Fedora 41 / ...), firewall: (Defender / ufw / firewalld)
Port 53317 TCP and UDP rules added: yes
Network profile / firewalld zone: (Private / public)
nc -vz (PC IP) 53317 result: (succeeded / no answer / refused)
Exact error from "Couldn't send to" alert: (paste here)
Troubleshooter ("Can't See Your Device?") results: (paste or describe)For other routes, see how to transfer files between Mac and Windows PC and how to share files between Mac and Linux.
Common questions
Do I need to open the port on the Mac too?
Only if the PC must send to the Mac and the macOS firewall blocks it. macOS may ask to allow incoming connections when its firewall is on. Ferryfox's Firewall check shows whether it is blocked.
Do I need both TCP and UDP?
Open both. With only TCP open, a subnet scan or Add by IP can still find the PC, but automatic discovery may fail.
Is opening this port safe?
Limiting the rule to Private networks on Windows, or to your subnet on ufw, keeps it off networks you don't trust. A rule exposes only what listens on that port, which here is the transfer app.