Networking

Which pair of TCP ports does File Transfer Protocol (FTP) use?

Show the answer

Correct answerC. 20 and 21

AWhy not this: These are POP3 and IMAP, which retrieve email rather than transfer files.

BWhy not this: These are SSH and Telnet, which provide remote command-line access, not FTP's control and data channels.

CWhy this is right: FTP uses port 21 for commands and port 20 for data, so this is the FTP pair.

DWhy not this: These are the DHCP server and client ports, used to assign IP addresses.

FTP uses port 21 for control and port 20 for data transfer. Ports 22 and 23 belong to SSH and Telnet, which are remote command-line protocols rather than file transfer protocols.