Home / Port numbers / Port 20
Port 20: FTP data
The data channel of active-mode FTP. Port 20 uses TCP.
- Port
- 20
- Commonly used for
- FTP data
- Transport
- TCP
- Encrypted
- No
- Range
- System (well-known) port, 0 to 1023
- Our advice
- Keep it closed to the internet
- IANA registration
ftp-dataFile Transfer [Default Data] (TCP, UDP, SCTP)
Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.
What port 20 is used for
Port 20 is the source port an FTP server uses for the data connection in active mode: the client asks for a file on port 21, and the server connects back from port 20 to deliver it. Because that connection comes inwards to the client, firewalls and home routers usually block it, which is why nearly all FTP today uses passive mode and port 20 sees little use.
Should port 20 be open?
It shares every weakness of FTP: nothing is encrypted. You do not open port 20 for incoming connections on a server, since the server connects outwards from it.
Related ports
- Port 21 (FTP): file transfer commands, unencrypted
- Port 990 (FTPS): FTP inside TLS encryption
- Port 22 (SSH): secure remote login and file transfer (SFTP)
See all port numbers for the full list and how ports, TCP and UDP work.
Next: Port 21 (FTP)