Port 20 (FTP Data) — What It Is and How to Use It
Port 20 is the standard port for the FTP (File Transfer Protocol) data connection when using active mode. It's used to transfer the actual file data between the client and server, separate from the control connection on port 21.
Port Number
20
Protocol
FTP Data
Common Use Cases
- Transferring files from a web server to a local computer.
- Uploading files to a remote server for website hosting.
- Backing up data to a remote storage location.
Check if Port 20 is Open
netstat -tulnp | grep :20
Get-NetTCPConnection | Where-Object {$_.LocalPort -eq 20}
⚠️ Security Note: Leaving port 20 open can pose a security risk if the FTP server is not properly configured and secured. Active FTP can be problematic with firewalls and NAT, as the server initiates the data connection back to the client.
Related Ports
Frequently Asked Questions
Is port 20 dangerous to leave open?
Leaving port 20 open isn't inherently dangerous, but it increases the attack surface if the FTP server is vulnerable. It's crucial to ensure the FTP server is properly configured with strong authentication and access controls.
What service uses port 20?
The FTP service uses port 20 for the data connection in active mode. This is where the actual file transfer takes place.