Ports
Transfer listens on these ports by default. You can change any of them in Transfer > Settings > General.
Transfer doesn’t need an administrator password to use ports below 1024. If another app on your Mac already uses a port, see Troubleshooting.
When you change a port, include it in the client’s connection details, for example
sftp -P 2222 transfer@192.168.1.20 or http://192.168.1.20:8080/.
The macOS firewall
If the macOS firewall is on, it may ask whether to allow Transfer to accept incoming network connections the first time a server starts. Click Allow. To check or change the setting later:- Open System Settings > Network > Firewall.
- Click Options….
- Make sure Transfer is in the list and set to Allow incoming connections. If it isn’t listed, click the add button (+) and choose Transfer.
Network firewalls
If a firewall or access control list sits between the client and your Mac, allow these flows from the client to your Mac, along with the replies:- TFTP: UDP to port 69, and UDP between the client and any port on your Mac for the rest of the transfer. A TFTP-aware firewall or a stateful rule that allows the replies handles this; a rule that allows only port 69 doesn’t.
- SFTP: TCP to port 22.
- FTP: TCP to port 21, and TCP to the passive port range for data connections. If the client uses active mode, your Mac also opens connections back to the client, which the firewall must allow.
- HTTP: TCP to port 80.
- HTTPS: TCP to port 443.
IPv4 and IPv6
Every server accepts IPv4 and IPv6 connections. The bottom bar lists IPv4 addresses first, then IPv6 addresses. When you type an IPv6 address in a URL, put it in square brackets, for examplehttp://[2001:db8::20]/. If a client can’t connect over IPv6, try an IPv4 address; some network devices support only IPv4 for file transfers.
VPNs
When your Mac is connected to a VPN, the bottom bar may also list the address the VPN assigns to your Mac. Clients on the VPN can use that address. Some VPN configurations block traffic from your local network while connected; if clients on your local network can’t reach Transfer, try again with the VPN disconnected.Network changes, sleep, and quitting
- Network changes: When your Mac joins another network or its address changes, the bottom bar updates automatically, and the servers keep running. Clients need to use the new address.
- Sleep: While a transfer is in progress, Transfer keeps your Mac from going to sleep because of inactivity. It can’t prevent sleep when you close the lid or choose Apple menu > Sleep. While your Mac is asleep, clients can’t reach it, and transfers in progress fail. To keep serving files for a long time, adjust your Mac’s sleep settings in System Settings > Energy, Energy Saver, or Battery, depending on your Mac and macOS version.
- Quitting: Transfer must stay open to serve files. Quitting it, or closing its window, stops all servers. If transfers are in progress, Transfer asks you to confirm.