Port 21 (FTP control)
Registered TCP and UDP services for port 21 from the IANA registry snapshot.
FTP commands and replies use the control channel. A successful login confirms only this channel. File transfers open a separate data connection.
| Protocol | Service name | Registry description |
|---|---|---|
| TCP | ftp | File Transfer [Control] |
| UDP | ftp | File Transfer [Control] |
Match both the port number and the transport when documenting a service. UDP 21 and TCP 21 identify separate sockets. Check the host configuration to identify the application actually listening.
Check the port on your Windows host
Open PowerShell on the computer running the service. Compare LocalAddress with the configured interface and check which clients the firewall allows.
- TCP ·
Get-NetTCPConnection -State Listen -LocalPort 21· Inspect local TCP listeners - UDP ·
Get-NetUDPEndpoint -LocalPort 21· Inspect local UDP endpoints
Related service ports · 20 · FTP active-mode data