> ## Documentation Index
> Fetch the complete documentation index at: https://docs.intuitibits.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Network access and firewalls

> Reach Transfer through firewalls, over IPv6, VPNs, and other networks, and understand sleep and network changes in Transfer.

*Transfer* is designed for clients on the same local network as your Mac. This page explains what clients need to reach it, and what affects connections across firewalls, VPNs, and other networks.

## Ports

*Transfer* listens on these ports by default. You can change any of them in *Transfer* > *Settings* > *General*.

| Protocol | Port | Additional ports |
| - | - | - |
| TFTP | UDP 69 | Each transfer continues on a different, random UDP port on your Mac |
| SFTP | TCP 22 | None |
| FTP | TCP 21 | Passive data connections use the [passive port range](https://docs.intuitibits.com/transfer/ftp-settings.md), TCP 50000-51000 by default |
| HTTP | TCP 80 | None |
| HTTPS | TCP 443 | None |

*Transfer* doesn't need an administrator password to use ports below 1024. If another app on your Mac already uses a port, see [Troubleshooting](https://docs.intuitibits.com/transfer/troubleshooting.md#resolve-a-port-already-in-use-error).

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:

1. Open *System Settings* > *Network* > *Firewall*.
2. Click **Options…**.
3. 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*.

If **Block all incoming connections** is selected, clients can't reach *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.

Use the ports you configured if they differ from these defaults.

## 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 example `http://[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.

## Access from other networks

*Transfer* doesn't set up access from the Internet. A client on another network can reach *Transfer* only if the networks are routed to each other, for example over a site-to-site VPN or a remote-access VPN that places the client on your network.

> [!WARNING]
>
> Don't forward ports on your router to make *Transfer* reachable from the Internet. TFTP, FTP, and HTTP aren't encrypted, TFTP has no sign-in, and HTTP and HTTPS allow unauthenticated requests by default. Use a VPN instead.

If you must reach *Transfer* across a router that performs network address translation (NAT), use SFTP or HTTPS. TFTP and FTP open additional connections on other ports, which often fail through NAT.

## See also

* [Serve files to clients](https://docs.intuitibits.com/transfer/serve-files-to-clients.md)
* [Protocols and security](https://docs.intuitibits.com/transfer/protocols-and-security.md)
* [Troubleshooting](https://docs.intuitibits.com/transfer/troubleshooting.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.