Common TCP & UDP Ports
Well-known port numbers for network services.
Well-known ports (0-1023) identify the standard services that run on networked hosts. This table covers the ports you will actually use when configuring firewalls, ACLs, and services: SSH, DNS, HTTP and HTTPS, mail, NTP, DHCP, SNMP, and the database and remote-access ports.
Port numbers are 16 bits wide, so each transport protocol has 65,535 ports. Ports 0 to 1023 are the well-known ports assigned to standard services, 1024 to 49151 are registered ports used by vendors and applications, and 49152 to 65535 are the dynamic or ephemeral ports a client picks for its side of a connection. When you write a firewall rule or an ACL, the well-known ports are the ones you will match most often, and the table also covers common alternates such as HTTP on 8080 so a service that is not on its default port does not surprise you.
Use it as a quick lookup when writing firewall rules.
| Port | Proto | Service | Description |
|---|---|---|---|
| 20 | TCP | FTP Data | File Transfer Protocol (data channel) |
| 21 | TCP | FTP Control | File Transfer Protocol (control) |
| 22 | TCP | SSH | Secure Shell |
| 23 | TCP | Telnet | Unencrypted remote access (avoid) |
| 25 | TCP | SMTP | Mail transfer between servers |
| 53 | UDP/TCP | DNS | Domain Name System |
| 67/68 | UDP | DHCP | Dynamic Host Configuration Protocol |
| 80 | TCP | HTTP | Hypertext Transfer Protocol |
| 110 | TCP | POP3 | Post Office Protocol v3 |
| 123 | UDP | NTP | Network Time Protocol |
| 143 | TCP | IMAP | Internet Message Access Protocol |
| 161/162 | UDP | SNMP | Simple Network Management Protocol |
| 389 | TCP | LDAP | Lightweight Directory Access Protocol |
| 443 | TCP | HTTPS | HTTP over TLS/SSL |
| 514 | UDP | Syslog | System logging |
| 587 | TCP | SMTP | Mail submission (authenticated) |
| 636 | TCP | LDAPS | LDAP over TLS/SSL |
| 993 | TCP | IMAPS | IMAP over TLS/SSL |
| 995 | TCP | POP3S | POP3 over TLS/SSL |
| 1194 | UDP | OpenVPN | OpenVPN default port |
| 1812/1813 | UDP | RADIUS | Authentication & accounting |
| 3389 | TCP | RDP | Remote Desktop Protocol |
| 5432 | TCP | PostgreSQL | PostgreSQL database |
| 8080 | TCP | HTTP Alt | HTTP alternative / proxy |
| 8443 | TCP | HTTPS Alt | HTTPS alternative |
Frequently Asked Questions
What is port 8080 used for?
How many TCP and UDP ports are there?
What is the difference between TCP and UDP ports?
Which ports are well known?
What is port 80 used for?
What port does DNS use?
What is an ephemeral port?
Read More
Guides that go deeper on the same topic.



More Reference
Explore the other reference in the toolkit.