Common Ports List: TCP and UDP Port Numbers
A port number tells a computer which program should receive a piece of network traffic. The IP address gets data to the right device, and the port gets it to the right service on that device, such as a web server on port 443 or SSH on port 22. The list below covers the ports you are most likely to meet, with the names they are registered under at IANA, the body that assigns them. To see whether a port is reachable on your own connection, use our port checker.
What is a port number?
A port is a number from 0 to 65535 that is part of every TCP and UDP connection. A server program listens on a fixed port so that clients know where to find it, and your device picks a temporary port for its own end of each connection. TCP and UDP each have their own set of numbers, so a service can be registered for TCP, for UDP or for both.
The three port ranges
RFC 6335 splits the 65,536 port numbers into three ranges, and IANA only hands out numbers in the first two.
| Range | Name | Assigned by IANA? |
|---|---|---|
| 0 to 1023 | System ports, also called well-known ports | Yes |
| 1024 to 49151 | User ports, also called registered ports | Yes |
| 49152 to 65535 | Dynamic, private or ephemeral ports | Never |
Because dynamic ports are never assigned, any program can use them for short-lived connections. Most of the services people search for sit in the well-known range.
Common ports list
Each entry is the service name and protocol from the IANA registry, with a note on what you will usually find using it.
| Port | Protocol | Service | Used for |
|---|---|---|---|
| 20, 21 | TCP | FTP data, FTP control | File transfer |
| 22 | TCP | SSH | Secure remote login, SFTP and Git over SSH |
| 23 | TCP | Telnet | Old remote login |
| 25 | TCP | SMTP | Mail between mail servers |
| 53 | UDP and TCP | DNS | Turning names into IP addresses |
| 67, 68 | UDP | DHCP server, DHCP client | Handing out IP addresses on a network |
| 69 | UDP | TFTP | Simple file transfer, network booting |
| 80 | TCP | HTTP | Unencrypted websites |
| 110 | TCP | POP3 | Downloading email |
| 123 | UDP | NTP | Clock synchronization |
| 137 to 139 | UDP and TCP | NetBIOS | Older Windows file and name services |
| 143 | TCP | IMAP | Reading email on the server |
| 161, 162 | UDP | SNMP, SNMP traps | Monitoring network equipment |
| 389 | TCP and UDP | LDAP | Directory services |
| 443 | TCP and UDP | HTTPS | Encrypted websites and most web APIs |
| 445 | TCP | Microsoft-DS (SMB) | Windows file and printer sharing |
| 465 | TCP | Submissions | Sending email over TLS |
| 500 | UDP | ISAKMP (IKE) | Setting up IPsec VPNs |
| 514 | UDP | Syslog | Sending logs to a log server |
| 587 | TCP | Submission | Sending email from a mail app |
| 636 | TCP | LDAPS | LDAP over TLS |
| 853 | TCP and UDP | DNS over TLS, DTLS or QUIC | Encrypted DNS |
| 993 | TCP | IMAPS | IMAP over TLS |
| 995 | TCP | POP3S | POP3 over TLS |
| 1194 | UDP and TCP | OpenVPN | OpenVPN tunnels |
| 1433 | TCP | Microsoft SQL Server | Database |
| 1723 | TCP | PPTP | Old VPN protocol |
| 1812, 1813 | UDP | RADIUS, RADIUS accounting | Network login for Wi-Fi and VPNs |
| 3306 | TCP | MySQL | Database |
| 3389 | TCP and UDP | MS WBT Server (RDP) | Windows Remote Desktop |
| 3478 | UDP and TCP | STUN, TURN | Helping calls and games get through NAT |
| 4500 | UDP | IPsec NAT traversal | IPsec VPNs behind a router |
| 5060, 5061 | UDP and TCP | SIP, SIP over TLS | Internet phone calls |
| 5353 | UDP | Multicast DNS | Finding printers and devices on the local network |
| 5432 | TCP | PostgreSQL | Database |
| 5900 | TCP | RFB (VNC) | Remote screen sharing |
| 6379 | TCP | Redis | In-memory database and cache |
| 8080 | TCP | HTTP alternate | Second web server, development servers, proxies |
| 9100 | TCP | Printer PDL data stream | Sending print jobs straight to a printer |
| 27017 | TCP | MongoDB | Database |
| 32400 | TCP | Plex | Plex Media Server |
A registration only says what a port is reserved for. Any program can be set to listen on any port, so traffic on port 443 is very likely HTTPS but not guaranteed to be.
The most searched ports
Port 443
Port 443 is HTTPS, the encrypted web. HTTP's own standard, RFC 9110, makes 443 the default port for https addresses, which is why you never have to type it. It is registered for both TCP and UDP. Blocking it breaks most websites and apps.
Port 80
Port 80 is plain HTTP, the default for http addresses in RFC 9110. Many sites answer on port 80 only to send you on to the HTTPS version on 443.
Port 22
Port 22 is SSH, used to log in to servers and routers securely, copy files with SFTP or SCP, and push code to Git hosts. A server that exposes it to the internet should allow key-based logins only.
Port 53
Port 53 is DNS, registered for both UDP and TCP. Encrypted DNS over TLS has its own port, 853. Our DNS server guide explains what happens when your device asks a resolver for an address.
Port 3389
Port 3389 is Windows Remote Desktop. Microsoft's documentation confirms that Remote Desktop listens on 3389 by default and shows how to change it. CISA lists exposed RDP among the weaknesses used in ransomware attacks, where attackers log in with weak or stolen passwords, and recommends multi-factor authentication.
Port 8080
Port 8080 is registered as an alternate HTTP port. It is a common choice for a second web server on the same machine, a development server or a web proxy, since port 80 is often already taken.
Which ports are risky to open?
Every port you forward on your router lets the whole internet knock on that service. A few deserve extra care.
- Remote Desktop (3389). CISA warns that attackers break in through RDP with weak or compromised credentials. Put it behind a VPN or use multi-factor authentication.
- SMB file sharing (139 and 445). CISA notes that the old SMBv1 version sends everything in clear text, and recommends a newer SMB version and carrying SMB over an encrypted VPN.
- Databases (1433, 3306, 5432, 6379, 27017). These are meant for your own apps to reach. Keep them on the local network or behind a VPN.
- Telnet (23) and plain FTP (21). Use SSH and SFTP instead, which encrypt the session.
Our guide to port forwarding covers opening a port safely when you do need one.
TCP ports vs UDP ports
TCP sets up a connection with a handshake before any data moves, so you can test a TCP port by trying to connect. UDP just sends packets, with no handshake and no resending, which suits DNS lookups, calls and games. Because nothing answers a probe, an open UDP port is hard to confirm from outside, and that is why our port checker tests TCP.
How to check which ports are open
Use the port checker to test whether a port on your public IP address can be reached from the internet. To see what is listening on your own computer, run netstat -an on Windows or lsof -i -P on a Mac. Our guide on how to check if a port is open walks through each method and what the results mean.
Frequently asked questions
How many ports are there?
There are 65,536 port numbers, from 0 to 65535, for each of TCP and UDP. Numbers 0 to 1023 are well-known ports, 1024 to 49151 are registered ports, and 49152 to 65535 are dynamic ports that IANA never assigns.
What port does HTTPS use?
Port 443. Plain HTTP uses port 80.
What port does email use?
Mail servers talk to each other on port 25. Mail apps send through 465 (TLS from the start) or 587, and read mail through IMAP on 993 or POP3 on 995. RFC 8314 recommends the TLS-from-the-start ports over upgrading a plain connection.
Is port 8080 the same as port 80?
Both carry HTTP, but they are separate ports. A server on 8080 has to be addressed with the port in the URL, for example http://example.com:8080.
Sources and further reading
- IANA Service Name and Transport Protocol Port Number Registry
- RFC 6335: IANA procedures for port numbers, including the three ranges (IETF)
- RFC 9110: HTTP Semantics, default ports 80 and 443 (IETF)
- RFC 2131: Dynamic Host Configuration Protocol, ports 67 and 68 (IETF)
- RFC 8314: Use of TLS for email submission and access (IETF)
- Microsoft Learn: Change the Remote Desktop listening port
- CISA: Misconfigurations and weaknesses known to be used in ransomware campaigns
Try it yourself
See the real numbers for your own connection with our free tools.