TCP and UDP ports list

Searchable table of the common TCP and UDP port numbers: SSH, HTTP, HTTPS, DNS, databases, mail, VPN and dev servers.

loading TCP and UDP ports list
About this tool

What is a list of TCP and UDP ports?

A port number tells a computer which program should receive a network connection. An IP address finds the machine, and the port finds the service on it: 22 for SSH, 443 for HTTPS, 5432 for PostgreSQL. A port is a number from 0 to 65535, and it is always tied to a protocol, TCP or UDP. This page is a searchable table of the most common ones, about a hundred: web, mail, remote access, files, DNS and DHCP, databases, VPNs, messaging, DevOps tools and the default ports of development servers such as Vite or Flask.

Each row shows the port, the protocol, the service name, a short note on what it is for (and, when it matters, a warning), and the origin. The origin has two values. "Registered with IANA" means the port was assigned to that service in the official registry. "De facto default" means a product or project chose it and everyone follows it, even without a registration.

The three ranges

  • 0 to 1023 are the well-known ports, assigned by IANA to standard services. On Unix systems, a program needs administrator rights to listen on them.
  • 1024 to 49151 are the registered ports, which products and projects request from IANA.
  • 49152 to 65535 are the dynamic (ephemeral) ports. The system picks one for the outgoing side of a connection. Your browser reaches port 443 on the server, but it uses one of these as its own port. Some systems use a slightly different ephemeral range.

TCP and UDP

TCP opens a connection, confirms delivery and keeps the order. It suits the web, mail, SSH and databases. UDP sends independent packets with no connection and no confirmation. It is faster and lighter, and suits DNS queries, clock sync, VoIP, VPNs and games. Some services use both, and the table shows TCP/UDP. DNS (53) is the classic one: UDP for common queries, TCP for large answers. HTTPS (443) is another: TCP carries HTTP/1.1 and HTTP/2, UDP carries HTTP/3.

The page runs in your browser, with no account, and sends nothing. To pick a free port for your own service, use the random port generator.

How to use the ports table

  1. Open the page. The table lists every port in ascending order, with a counter of how many are shown.
  2. Type in the search box. Press / anywhere on the page to jump to it.
  3. Search by number. A number finds the ports that start with it, and the exact match comes first. 80 shows 80, then 8000, 8080 and 8086.
  4. Search by range. Write two numbers with a hyphen, such as 8000-8100, to see every port inside it, ends included.
  5. Search by name. Words must all appear in the name, the description, the category or the protocol, ignoring accents and capitals. ssh, postgres or mail tls work.
  6. Narrow it down with the TCP and UDP buttons and with the category list. A port that uses both protocols appears under each button.
  7. Click a row to copy the port number. Use the clear button to reset the search.

If you need to work out which addresses belong together on a network, the IPv4 subnet calculator does it.

Examples

Search by number prefix

Typing the beginning of a number is useful when you remember only part of it:

53

The result is port 53 (DNS, TCP and UDP) first, then 5353 (mDNS, UDP). The exact match is always on top.

Search by range

8000-8100

The table shows 8000 (HTTP alternate, used by Django and python -m http.server), 8080 (HTTP alternate) and 8086 (InfluxDB). If you write the ends in reverse order, such as 8100-8000, they are swapped for you.

See what is listening on your own machine

The table tells you what a port is for. These commands tell you what is actually using it:

ss -tulpn
lsof -iTCP -sTCP:LISTEN -P -n
netstat -ano

The first is for Linux (TCP and UDP, listening, with the process and numeric ports), the second for macOS, and the third for Windows, where the last column is the process ID. Found 0.0.0.0:6379 or *:6379 in the output? That Redis accepts connections from every network interface, and it is worth checking the next section.

Common mistakes

Exposing a port that should be private

Some ports should never be open to the internet. They carry no encryption, or they give control of the machine:

  • 23 (Telnet): a remote shell with no encryption.
  • 445 (SMB), and with it 135 and 139: Windows file sharing and RPC, a frequent target of worms and ransomware.
  • 3389 (RDP): Windows remote desktop, constantly scanned and attacked. Put it behind a VPN.
  • 2375 (Docker daemon, no TLS): whoever reaches it controls the host. See the Docker cheatsheet.
  • 6379 (Redis): a database that, without a password and a restricted bind, answers to anyone.
  • 111 (portmapper) and 11211 (Memcached, UDP side): known sources of amplification attacks.

Thinking a port number proves the service

Nothing forces a program to follow the table. An SSH server can listen on 2222 and a web server on 22. The table says what is expected, not what is there. Moving SSH to another port reduces log noise, but it is not a security measure.

Confusing a de facto default with a standard

3000, 5173 and 8888 are habits of Node, Vite and Jupyter. They can clash with other tools on the same machine, and a changed configuration is normal. Check the origin column before treating a port as an official assignment.

Forgetting UDP in the firewall

Opening 51820/TCP does not open WireGuard, which uses UDP. The same goes for 1194 (OpenVPN default), 500 and 4500 (IPsec) and 443 for HTTP/3.

Frequently asked questions

Why do HTTP and HTTPS use 80 and 443?

They were assigned to those services in the IANA registry, which is why browsers assume them and leave them out of the address. https://example.com really means https://example.com:443. Corporate firewalls usually allow these two ports, which is why many other services try to look like web traffic.

What is the difference between the well-known and the registered ports?

Well-known ports (0 to 1023) are for standard services, assigned by IANA and restricted to administrator rights on Unix. Registered ports (1024 to 49151) are requested by products and projects. Technically, neither range forces a program to use a number.

Is the list complete?

No. There are thousands of registrations, and the table keeps the common, useful ones. If a port is not here, it is not wrong or invalid. The IANA service name and port registry is the complete source.

Report a problem