TCP and UDP port number reference

Search by port number, service name or keyword to see what a port is used for. The list covers the ports that come up most in firewalls, servers and home networks.

How to look up a port

  1. Type a port number, a service name such as ssh, or a keyword such as mail.
  2. Narrow the list by category or protocol if you like.
  3. Read what the port is for and whether the traffic is encrypted.

The three port ranges

RangeNameUsed for
0 – 1023Well-known portsCore services such as HTTP, SSH and DNS. On Linux only root can listen here.
1024 – 49151Registered portsApplications such as databases, remote desktop and game servers.
49152 – 65535Dynamic portsTemporary 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

PortService
22SSH
25, 465, 587Sending email (SMTP)
53DNS
80, 443Web (HTTP, HTTPS)
123Time sync (NTP)
143, 993Reading email (IMAP)
445Windows file sharing (SMB)
3306, 5432MySQL, PostgreSQL
3389Remote 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.