BackendBench
Coffee
Cheat sheet

Ports cheat sheet

Which port does that service use? Search 50 common ports with protocol and notes, and see which are registered and which are just defaults.

PortProtocolServiceKindNote
20, 21TCPFTP (data, control)well-known (IANA)Plain text. Prefer SFTP over SSH.
22TCPSSH, SFTP, SCPwell-known (IANA)Also used by Git over SSH.
25TCPSMTPwell-known (IANA)Server to server mail; often blocked for clients.
53TCP/UDPDNSwell-known (IANA)UDP for most queries, TCP for large answers and zone transfers.
67, 68UDPDHCPwell-known (IANA)
80TCPHTTPwell-known (IANA)
110TCPPOP3well-known (IANA)995 for POP3 over TLS.
123UDPNTPwell-known (IANA)Time synchronisation.
143TCPIMAPwell-known (IANA)993 for IMAP over TLS.
161, 162UDPSNMPwell-known (IANA)
389TCP/UDPLDAPwell-known (IANA)636 for LDAP over TLS (LDAPS).
443TCP/UDPHTTPSwell-known (IANA)UDP is used by HTTP/3 (QUIC).
445TCPSMBwell-known (IANA)Windows file sharing.
465TCPSMTPSwell-known (IANA)Implicit TLS mail submission.
514UDPSyslogwell-known (IANA)6514 for syslog over TLS.
587TCPSMTP submissionwell-known (IANA)Mail clients sending through a provider (STARTTLS).
873TCPrsyncwell-known (IANA)
1433TCPMicrosoft SQL Serverregistered (IANA)
1521TCPOracle Database listenerdefault (not IANA)The conventional Oracle listener port; the IANA entry for 1521 is a different service.
2049TCP/UDPNFSregistered (IANA)
2181TCPApache ZooKeeper clientdefault (not IANA)Kafka before KRaft uses it.
2379, 2380TCPetcd client and peerregistered (IANA)Kubernetes control plane storage.
3000TCPGrafana, many Node dev serversdefault (not IANA)Common for local development.
3306TCPMySQL, MariaDBregistered (IANA)
3389TCP/UDPRDPregistered (IANA)Windows Remote Desktop. Never expose to the internet.
4222TCPNATSregistered (IANA)
5000TCPDocker registry, Flask dev serverdefault (not IANA)macOS AirPlay can occupy it.
5005TCPJava remote debugging (JDWP)default (not IANA)Convention: -agentlib:jdwp=...address=*:5005.
5432TCPPostgreSQLregistered (IANA)
5601TCPKibanadefault (not IANA)
5672TCPRabbitMQ (AMQP)registered (IANA)5671 for AMQP over TLS.
5900TCPVNCregistered (IANA)
6379TCPRedisregistered (IANA)Do not expose to the internet without authentication.
6443TCPKubernetes API serverdefault (not IANA)
8080TCPAlternative HTTP, Spring Boot, Tomcat, Jenkinsregistered (IANA)Spring Boot default; change with server.port.
8081TCPAlternative HTTP, Nexusdefault (not IANA)Often used for a Spring Boot management port.
8200TCPHashiCorp Vaultdefault (not IANA)
8443TCPAlternative HTTPSdefault (not IANA)Widely used for HTTPS on a non-standard port; IANA lists 8443 for a different service (pcsync-https).
8500TCPConsul HTTP APIdefault (not IANA)
9000TCPSonarQube, MinIO API, PHP-FPMdefault (not IANA)
9042TCPApache Cassandra (CQL)default (not IANA)
9090TCPPrometheusdefault (not IANA)
9092TCPApache Kafka brokerdefault (not IANA)
9200, 9300TCPElasticsearch HTTP and transportdefault (not IANA)
10250TCPKubernetes kubelet APIdefault (not IANA)
11211TCP/UDPMemcachedregistered (IANA)
15672TCPRabbitMQ management UIdefault (not IANA)
27017TCPMongoDBdefault (not IANA)
50000TCPJenkins inbound agentsdefault (not IANA)Configurable in the security settings.

The ports you keep looking up

Every developer eventually asks the same questions: which port does PostgreSQL use, is 9092 Kafka or something else, what is the debugging port for Java, why does the app refuse to start because 8080 is taken. This sheet collects the ports of the services you meet in Java, container and DevOps work, with the protocol and a short note, and a search box to filter them.

The Kind column matters: well-known (below 1024) and registered (1024 and up) mean the port is listed by IANA for that service, while default means that the product commonly ships with it but it is not an official registration, so it can be changed freely and may clash with something else. Spring Boot's 8080 is both; JDWP's 5005 is only a convention.

Working with ports

The table is a reference, not a security policy: check your vendor's documentation for the version you run. It is static and works offline.

Frequently asked questions

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

The IANA registry divides ports into well-known (0 to 1023, historically needing root), registered (1024 to 49151) and dynamic or private (49152 to 65535). A "default" port in this table is the usual value a product ships with, which may not be registered.

Why does 8080 appear everywhere?

Ports below 1024 historically needed administrator rights, so application servers such as Tomcat chose 8080 as an easy alternative to 80. Spring Boot kept that default.

Which ports should never be open to the internet?

Databases (3306, 5432, 1433, 1521, 27017), caches (6379, 11211), remote desktop (3389), SMB (445), the Kubernetes kubelet and etcd. Put them behind a private network, VPN or bastion host.

How do I see what is listening on a port?

On Linux use ss -ltnp or lsof -i :8080; on Windows use netstat -ano | findstr :8080; on macOS use lsof -iTCP -sTCP:LISTEN.

More tools you might need