Port

Port 21 — FTP control

Port 21 (TCP) is used by FTP control. File Transfer Protocol command/control channel — logins and commands.

Port 21 at a glance

PropertyValue
Port number21
TransportTCP
ServiceFTP control
CategoryWell-known port

What it is used for

File Transfer Protocol command/control channel — logins and commands.

Security considerations

Clear text logins. Replace with SFTP (SSH) where possible.

See our full TCP/UDP port reference and learn how firewalls filter ports in the CyberOps course.

Frequently asked questions

What is port 21 used for?

Port 21 (TCP) is used by FTP control. File Transfer Protocol command/control channel — logins and commands.

Is port 21 TCP or UDP?

Port 21 uses TCP.

Is it safe to open port 21?

Clear text logins. Replace with SFTP (SSH) where possible.

Learn networking hands-on

Master IP addressing, subnetting and Cisco configuration on real lab devices with placement support at Attila Technologies, Ahmedabad.

Start your networking career with Attila Technologies

Hands-on Cisco training, real lab devices and placement support in Ahmedabad.