Port 20 (FTP data)
Port 20 is the data port for FTP in active mode. Its IANA registration, transports and port range.
Updated
Port 20 is registered with IANA under the service name ftp-data, on TCP, UDP and SCTP. It is one of the well-known (system) ports, 0 to 1023.
IANA registration
This is the assignment for port 20 exactly as the registry lists it, one row per service name and transport.
| Service name | Transport | Description | Reference |
|---|---|---|---|
ftp-data |
TCP | File Transfer [Default Data] | None listed |
ftp-data |
UDP | File Transfer [Default Data] | None listed |
ftp-data |
SCTP | FTP | RFC 9260 |
Source: IANA Service Name and Transport Protocol Port Number Registry, as downloaded on December 5, 2026. The registry changes over time; the linked page is the authority.
A registration records who a port number is assigned to. It does not prove that whatever is listening on the port is that service, and it does not mean the service uses every transport listed: older entries were routinely registered for both TCP and UDP.
In practice
This section is written by Network Utility. It is not part of the IANA registry.
Port 20 is the data port for FTP in active mode.
FTP uses two connections: a control connection to port 21 and a separate data connection for each file transfer or directory listing. In active mode the server opens the data connection from its port 20 back to a port the client chose. In passive mode the client opens the data connection to a high port the server chose, and port 20 is not used at all.
Active mode often fails through NAT and client-side firewalls, because the inbound connection from the server is blocked. Passive mode is the usual fix; the server operator then needs to allow its passive port range. FTP sends data without encryption.
Related ports: 21 (FTP control), 22 (SSH), 989 (FTPS data), 990 (FTPS control).
Port range
Port 20 falls in the well-known (system) port range, 0 to 1023. RFC 6335 calls these System Ports. IANA assigns them only through the IETF Review or IESG Approval procedures, the strictest rules of the three ranges. On Unix-like systems a program has traditionally needed root privileges to listen on a port below 1024.
The other ranges are registered (user) ports (1024 to 49151) and dynamic (private) ports (49152 to 65535). The ranges and the assignment rules are defined in RFC 6335.
Look up another port in the port table.