Common Ports Cheat Sheet: Well-Known TCP and UDP Port Numbers
Checked against IANA port registry IANA Service Name and Transport Protocol Port Number Registry, last updated 2026-11-24 on 28 November 2026. Each section links to the official docs it was checked against.
This is a lookup table for the ports you see in configs, firewall rules and error messages. Every service name below was read from the IANA registry CSV (last updated 24 Nov 2026). Where a tool uses a port that IANA assigns to something else, or not at all, the row says so and cites the tool's own docs.
When to use what
Treat the registry as a naming list, not a security control. IANA records who asked for a number; it does not stop anything else from listening there. Port 3000 is registered as HBCI, yet on a developer laptop it is almost always a Node dev server. When a port is open and you don't know why, ask the machine with lsof or ss, not the table.
The ranges tell you how much weight a number carries. IANA calls 0-1023 System Ports, 1024-49151 User Ports, and 49152-65535 Dynamic or Private Ports that are never assigned. Pick from the dynamic range for anything internal you invent, so you don't collide with a registered service.
For databases and caches, the default port is the first thing scanners try. Keep them bound to localhost or a private network and open them in your firewall only to the hosts that need them. The port reference has a searchable list, and SSH tunnels and port forwarding shows how to reach a private database port without opening it at all. The DNS lookup tool helps when port 53 is the suspect.
IANA usually registers a name for both TCP and UDP even when the protocol uses only one.
22/tcp sshSecure Shell, also used by scp, sftp, rsync over SSH and Git over SSH
23/tcp telnetTelnet: unencrypted remote login, should be closed on anything you run
80/tcp httpPlain HTTP; most sites now only redirect from here to 443
443/tcp httpsHTTP over TLS; IANA registers 443/udp under the same name
8080/tcp http-altRegistered as an HTTP alternate; common for app servers and proxies
3389/tcp ms-wbt-serverMicrosoft Remote Desktop (RDP)
5900/tcp rfbRemote Framebuffer, the VNC protocol
9418/tcp gitGit's own unauthenticated pack protocol (git:// URLs)
53/udp, 53/tcp domainDNS; IANA registers the name on both transports, so firewall rules usually need both
853/tcp domain-sDNS over TLS; IANA lists 853/udp as DNS over DTLS or QUIC
5353/udp mdnsMulticast DNS, the .local name lookups on a LAN
25/tcp smtpSimple Mail Transfer, the port mail servers use to pass mail to each other
587/tcp submissionMessage Submission: where apps and mail clients hand outgoing mail to a server
465/tcp submissionsMessage Submission over TLS; IANA also lists urd on 465/tcp
993/tcp imapsIMAP over TLS
123/udp ntpNetwork Time Protocol
20/tcp, 21/tcp ftp-data, ftpFTP data and control channels
873/tcp rsyncThe rsync daemon protocol (rsync://), not rsync over SSH
2049/tcp nfsNetwork File System
5432/tcp postgresqlPostgreSQL server default port
3306/tcp mysqlMySQL server default port
1433/tcp ms-sql-sMicrosoft SQL Server default port
27017/tcp mongodbMongoDB server default port
6379/tcp redisRedis; IANA's description is "An advanced key-value cache and store"
11211/tcp memcacheMemcached, registered as "Memory cache service"
5672/tcp amqpAMQP, the Advanced Message Queuing Protocol
1883/tcp mqttMQTT; 8883 is registered as secure-mqtt
2379/tcp etcd-clientetcd client API, also used by Kubernetes control planes
These rows mix IANA entries with defaults from tool docs. Vite's default is on https://vite.dev/config/server-options and Next.js' on https://nextjs.org/docs/app/api-reference/cli/next.
6443/tcpKubernetes API server per the Kubernetes docs; IANA registers 6443 as sun-sr-https, so this is convention, not assignment
2375/tcp, 2376/tcp docker, docker-sDocker REST API in plain text and over TLS; never expose 2375 to a network
4317/tcp opentelemetryOpenTelemetry Protocol, registered with IANA
3000/tcpNext.js next dev default per its CLI docs; IANA registers 3000 as hbci
5173/tcpVite dev server default per its docs; not registered with IANA, and Vite moves to the next free port if it is taken
10250/tcpKubelet API on every node per the Kubernetes ports page; keep it off the public internet
Worked example: Work out what an unknown open port is
A scan of your VPS shows TCP 6379 open to the internet. Two questions: what normally lives there, and what actually lives there on this box.
First the registry. The IANA CSV row for 6379 reads:
redis,6379,tcp,An advanced key-value cache and store,...
So it is probably Redis. Now confirm on the server itself (Linux, as root):
ss -ltnp 'sport = :6379'
In the output, look at the Local Address column. 0.0.0.0:6379 or *:6379 means every interface, which is why the scan found it. 127.0.0.1:6379 would mean localhost only. The process column names the program and PID, which settles the question of what is really there regardless of the registry.
The fix for a cache on a public interface is to bind it to 127.0.0.1 or a private address in its config, then close the port in your host firewall too. The ss command was not run here (it is Linux-only); the registry lookup was done on the downloaded CSV.
Common mistakes
Assuming a port is safe because the registry lists a harmless-sounding service for it.
Check the listening process with
ss -ltnporlsof -i, since anything can bind any free port.Opening a database's default port to 0.0.0.0/0 so a laptop can connect.
Allow only your address range in the firewall, or reach the port through an SSH tunnel.
Inventing an internal service port in the User range and colliding with a registered product later.
Pick from 49152-65535, which IANA leaves unassigned for private use.
Opening only TCP for a service that IANA and its docs list on UDP too, such as DNS on 53.
Check the transport column for the service and allow each protocol it actually uses.
Exposing the Docker API on 2375 so a CI job can reach it.
Keep 2375 closed; IANA lists it as plain text, so use 2376 with TLS or an SSH connection.
Related cheat sheets
Sources
- https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml
- https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv
- https://kubernetes.io/docs/reference/networking/ports-and-protocols/
- https://vite.dev/config/server-options
- https://nextjs.org/docs/app/api-reference/cli/next
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.