Port 21: FTP

Port 21 is FTP, an old file transfer protocol that sends passwords in plain text.

At a glance
Port
21 / TCP
Service
FTP
Also called
ftp, file transfer protocol
If exposed
Medium risk if exposed

What runs on port 21

FTP servers accept commands and logins on TCP 21, and move file data over a separate connection (port 20 in active mode, or a random high port in passive mode). It dates from the early 1970s and has no encryption unless the server supports FTPS. SFTP, which runs over SSH on 22, is a different and safer protocol.

On a home network

NAS boxes, routers with a USB drive attached, some printers and scanners (for scan-to-FTP) and old IP cameras can run an FTP server. It is often off by default.

If port 21 is reachable from the internet

Exposing FTP to the internet means usernames, passwords and files travel unencrypted, and FTP servers are brute forced constantly. Servers that allow anonymous login have leaked large amounts of personal data over the years. If you need remote file access, use SFTP, a VPN, or your NAS vendor's encrypted remote access.

How to check whether it is open on your network

Look in your NAS and router settings for an FTP server option, and check port forwarding for 21. RECON's Port Scan will show which devices on your network answer on 21.

Related ports

All portsPort lookupSubnet calculator

Other tools

IPv4 · IPv6 · CIDR
Subnet calculator
Network, broadcast, host range and wildcard for any CIDR, IPv4 or IPv6. Turns an IP range into the CIDR blocks that cover it.
OUI · MA-L · MA-M · MA-S
MAC vendor lookup
Which company made the device behind a hardware address, from the IEEE registry. Spots randomised private addresses too.
X.509 · PKCS#10 · PEM · DER
Certificate and CSR decoder
Subject, issuer, validity, key, SANs, key usage and fingerprints from a certificate or signing request. Parsed in your browser.
VPN · resolver · privacy
DNS leak test
Which DNS servers actually answer your lookups on this connection, who owns them, and whether your VPN or private DNS is really being used.
Cloudflare · Google · Quad9 · 8 resolvers
DNS benchmark
Times eight public resolvers from where you are, over DNS-over-HTTPS, and ranks them by median response.
TCP · UDP · what is this port
Port lookup
What a port number is used for, which home devices open it, and whether it matters that it is reachable.
Certificate Transparency · CT logs
Subdomain finder
Every subdomain on a currently valid TLS certificate, from the public Certificate Transparency logs, with the ones worth a second look flagged.
IP to ASN · BGP · IP ranges
ASN lookup
Which network routes an IP address, who holds an AS number, and every IPv4 and IPv6 range it announces. Live BGP data from RIPEstat.
HTTP archive
HAR analyzer
Open a HAR file and see what a page really loaded: third parties, slowest requests, insecure cookies, servers that leak versions.
IIS · nginx · Apache · access logs
Log analyzer
Check IIS, nginx and Apache access logs for signs of exploitation, with a verdict per CVE and every finding traced to its line. Read in your browser, never uploaded.
Public IP · fingerprint
What is my IP
Your public address and everything else your browser hands to every site you visit, without asking.