How to look up a port
- Type a port number, a service name such as
ssh, or a keyword such asmail. - Narrow the list by category or protocol if you like.
- Read what the port is for and whether the traffic is encrypted.
The three port ranges
| Range | Name | Used for |
|---|---|---|
| 0 – 1023 | Well-known ports | Core services such as HTTP, SSH and DNS. On Linux only root can listen here. |
| 1024 – 49151 | Registered ports | Applications such as databases, remote desktop and game servers. |
| 49152 – 65535 | Dynamic ports | Temporary ports your computer picks for outgoing connections. |
TCP or UDP?
TCP sets up a connection and makes sure every byte arrives in order. Web pages, email, SSH and databases use it. UDP sends packets with no setup and no guarantee, which is faster and suits DNS lookups, video calls, games and VPN tunnels. The same port number can mean different things on each, so firewall rules name both the port and the protocol.
Ports worth knowing by heart
| Port | Service |
|---|---|
| 22 | SSH |
| 25, 465, 587 | Sending email (SMTP) |
| 53 | DNS |
| 80, 443 | Web (HTTP, HTTPS) |
| 123 | Time sync (NTP) |
| 143, 993 | Reading email (IMAP) |
| 445 | Windows file sharing (SMB) |
| 3306, 5432 | MySQL, PostgreSQL |
| 3389 | Remote Desktop (RDP) |
Ports that should not face the internet
Automated scanners look for remote access and database ports all day. Keep Telnet (23), SMB (445), RDP (3389), VNC (5900), and database ports such as 3306, 5432, 6379 and 27017 behind a firewall or VPN. If SSH (22) must be open, use keys, not passwords.
Opening ports for a container? The Docker Compose generator writes the port mappings. For address planning, see the subnet calculator.
Frequently asked questions
What is port 443 used for?
HTTPS, which is encrypted web traffic. Port 80 is the unencrypted version, HTTP.
What port does SSH use?
TCP port 22 by default. SFTP and SCP run over SSH, so they use port 22 as well.
What port does Remote Desktop use?
TCP and UDP port 3389.
How many ports are there?
65,536 for each of TCP and UDP, numbered 0 to 65535.
Is this the complete IANA list?
No. It is a curated list of the ports people meet most often. IANA keeps the full registry of several thousand assignments.