Which port is used by FTP by default?

Prepare for the eLearnSecurity Junior Penetration Tester exam with our comprehensive quiz platform. Improve your skills with multiple-choice questions, detailed explanations, and exam tips. Get exam ready with ease!

Multiple Choice

Which port is used by FTP by default?

Explanation:
FTP uses a control connection on TCP port 21 by default. This is where commands like USER, PASS, LIST, RETR, and STOR are sent. Data transfers happen on a separate connection, which in active mode starts from port 20 on the server, while in passive mode the server chooses a high-numbered port and the client connects to it. So the default port for FTP control is 21. The other ports shown correspond to different services: 3389 (Remote Desktop Protocol), 1433 (SQL Server), and 3306 (MySQL).

FTP uses a control connection on TCP port 21 by default. This is where commands like USER, PASS, LIST, RETR, and STOR are sent. Data transfers happen on a separate connection, which in active mode starts from port 20 on the server, while in passive mode the server chooses a high-numbered port and the client connects to it. So the default port for FTP control is 21. The other ports shown correspond to different services: 3389 (Remote Desktop Protocol), 1433 (SQL Server), and 3306 (MySQL).

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy