FTPMonitor / Guides / FTP port 21 blocked

FTP port 21 blocked

How to diagnose and fix firewall rules blocking FTP port 21.

Diagnose this automatically

Test whether the network port is reachable before investigating authentication problems.

terminal
npx ftpmonitor check --protocol ftp --host ftp.example.com --port 21
Shareable output
terminal
npx ftpmonitor check --protocol ftp --host ftp.example.com --port 21 --format slack --copy

Prefer the browser? Run the same check on the homepage.

Port 21 is the default FTP control port.

If blocked, clients cannot establish an FTP connection.

Common causes

  • Firewall rule blocking inbound traffic
  • ISP blocking FTP ports
  • Server security group restrictions

Fix checklist

  1. Open port 21 in the firewall.
  2. Verify cloud security group rules.
  3. Check server listening ports.

Quick commands

nc -vz <host> 21
nmap -p 21 <host>
Related
Diagnostics powered by FTPMonitor CLI