Common network ports quick reference

Below are the TCP and UDP ports you will see most often in firewalls, logs and configuration files. Most services listen on a fixed default port, so knowing the common ones lets you identify traffic at a glance.

Updated:

PortProtocolTransportPurpose
20/21FTPTCPFile transfer (21 control, 20 data)
22SSHTCPSecure remote login and SFTP
23TelnetTCPUnencrypted remote terminal
25SMTPTCPSending and relaying email
53DNSUDP/TCPDomain name resolution
67/68DHCPUDPAutomatic IP assignment
80HTTPTCPWeb pages, unencrypted
110POP3TCPEmail retrieval
143IMAPTCPEmail synchronisation
443HTTPSTCPSecure web traffic
587SMTP submissionTCPEmail sending with authentication
993IMAPSTCPSecure IMAP over TLS/SSL
3306MySQLTCPMySQL database access
5432PostgreSQLTCPPostgreSQL database access
3389RDPTCPWindows remote desktop
8080HTTP altTCPWeb proxy and dev servers

Notes

Frequently asked questions

What is port 443 used for?
Port 443 is the default port for HTTPS, the encrypted version of HTTP. It is what browsers use for most secure websites and where TLS connections terminate.
What is the difference between TCP and UDP ports?
TCP establishes a reliable, ordered connection and is used by most services such as HTTP, SSH and email. UDP is faster and connectionless, which suits DNS queries, DHCP and streaming.
Which ports are considered well-known?
Well-known ports are numbers 0–1023, assigned by IANA to standard services such as HTTP (80) and HTTPS (443). Ports 1024–49151 are registered, and 49152–65535 are dynamic or ephemeral.
How can I check which ports are open on my machine?
On Windows run netstat -ano. On macOS and Linux use netstat -tulnp or lsof -i. The output lists listening addresses and the program owning each port.