Quiz Entry - updated: 2026.07.05
What are the port numbers for FTP?
FTP = ports 21 (control) and 20 (data), both TCP.
FTP = Ports 20 and 21 (TCP)
- Port 21: Control channel (commands, authentication)
- Port 20: Data channel (actual file transfers in active mode)
Memory tip: "21 = talk (control/commands), 20 = transfer (data)" - you connect on 21 first, then data flows on 20.
Security note: FTP sends credentials in plaintext. Use SFTP (over SSH, port 22) or FTPS instead.
Go deeper:
File Transfer Protocol — Wikipedia overview confirming TCP port 21 for control and 20 for data.
List of TCP and UDP port numbers — the broader lookup table placing 20/21 among the well-known ports.