Skip to content

Common ports lookup

Free, no sign-up Runs in your browser

Search well-known TCP and UDP ports by number or service. Each entry has its IANA name and use, with a warning for services that should not face the internet.

115 well-known ports. A number finds that port. Words search the names and descriptions.

PortTransportIANA nameUsed forExposure
20TCPftp-dataFTP data transfer (active mode)
21TCPftpFTP control connectionFTP sends passwords and files in clear text. Prefer SFTP or FTPS.
22TCPsshSSH: remote shell, SFTP and SCPFine to expose when it is key-only and patched. It is scanned and brute-forced constantly.
23TCPtelnetTelnet remote terminalKeep off the internet Should not face the internet. Telnet has no encryption: logins cross the network in clear text. Use SSH.
25TCPsmtpSMTP: mail transfer between servers
43TCPnicnameWHOIS lookups
49TCPtacacsTACACS+ device authenticationKeep on the management network.
53TCP, UDPdomainDNSAn open resolver is abused for amplification attacks. Only authoritative servers should answer the whole internet.
67UDPbootpsDHCP server
68UDPbootpcDHCP client
69UDPtftpTFTP: trivial file transferKeep off the internet Should not face the internet. TFTP has no authentication at all.
79TCPfingerFinger user informationObsolete. It gives away account names.
80TCPhttpHTTP: unencrypted web traffic
88TCP, UDPkerberosKerberos authenticationKeep inside the network that uses it.
110TCPpop3POP3 mail retrievalClear text unless STARTTLS is used. Prefer port 995.
111TCP, UDPsunrpcONC RPC port mapper (rpcbind)Keep off the internet Should not face the internet. It lists the RPC services of the host and is abused for amplification.
119TCPnntpNNTP: Usenet news
123UDPntpNTP time synchronization
135TCPepmapMicrosoft RPC endpoint mapperKeep off the internet Should not face the internet. It is the entry point to Windows RPC services.
137UDPnetbios-nsNetBIOS name serviceKeep off the internet Should not face the internet.
138UDPnetbios-dgmNetBIOS datagram serviceKeep off the internet Should not face the internet.
139TCPnetbios-ssnNetBIOS session service (SMB over NetBIOS)Keep off the internet Should not face the internet, like SMB on port 445.
143TCPimapIMAP mail accessClear text unless STARTTLS is used. Prefer port 993.
161UDPsnmpSNMP device monitoringKeep off the internet Should not face the internet. SNMP v1 and v2c send their community string in clear text.
162UDPsnmptrapSNMP traps
179TCPbgpBGP routing between networksOnly between configured peers.
389TCP, UDPldapLDAP directory accessKeep off the internet Should not face the internet. It exposes the directory, and over UDP it is abused for amplification.
443TCP, UDPhttpsHTTPS: web traffic over TLS, and HTTP/3 over UDP
445TCPmicrosoft-dsSMB file and printer sharingKeep off the internet Should not face the internet. SMB flaws such as EternalBlue spread worms like WannaCry.
464TCP, UDPkpasswdKerberos password change
465TCPsubmissionsSMTP mail submission over implicit TLS
500UDPisakmpIKE key exchange for IPsec VPNs
512TCPexecrexec remote executionKeep off the internet Should not face the internet. The r-services are obsolete and send everything in clear text.
513TCPloginrlogin remote loginKeep off the internet Should not face the internet. The r-services are obsolete and trust the caller’s address.
514TCPshellrsh remote shellKeep off the internet Should not face the internet. The r-services are obsolete and trust the caller’s address.
514UDPsyslogSyslog log forwardingNot authenticated or encrypted. Keep on the internal network, or use syslog over TLS on 6514.
515TCPprinterLPD print spoolerKeep off the internet Should not face the internet.
520UDProuterRIP routing
546UDPdhcpv6-clientDHCPv6 client
547UDPdhcpv6-serverDHCPv6 server
548TCPafpovertcpApple Filing Protocol file sharingKeep off the internet Should not face the internet.
554TCPrtspRTSP media streaming, used by IP camerasCameras with RTSP open to the internet are found and watched by anyone.
587TCPsubmissionSMTP mail submission with STARTTLS
623UDPasf-rmcpIPMI remote management of server hardwareKeep off the internet Should not face the internet. IPMI gives control of the machine below the operating system, and its protocol leaks password hashes.
631TCPippIPP printing (CUPS)Keep off the internet Should not face the internet.
636TCPldapsLDAP over TLSKeep inside the network that uses it.
853TCPdomain-sDNS over TLS
873TCPrsyncrsync file synchronizationAn rsync daemon is often left without a password. Do not expose it; run rsync over SSH.
989TCPftps-dataFTPS data transfer
990TCPftpsFTPS control over implicit TLS
993TCPimapsIMAP over TLS
995TCPpop3sPOP3 over TLS
1080TCPsocksSOCKS proxyAn open proxy is found and abused within hours.
1099TCPrmiregistryJava RMI registryKeep off the internet Should not face the internet. Exposed RMI and JMX endpoints lead to remote code execution.
1194UDPopenvpnOpenVPN
1433TCPms-sql-sMicrosoft SQL ServerKeep off the internet Should not face the internet. Databases belong behind the application, on a private network.
1434UDPms-sql-mMicrosoft SQL Server BrowserKeep off the internet Should not face the internet. It was the target of the SQL Slammer worm.
1521TCPncube-lmOracle Database listener (by convention; Oracle’s registered port is 2483)Keep off the internet Should not face the internet. Databases belong behind the application, on a private network.
1701UDPl2tpL2TP tunnels
1723TCPpptpPPTP VPNPPTP’s encryption is broken. Replace it.
1812UDPradiusRADIUS authentication
1813UDPradius-acctRADIUS accounting
1883TCPmqttMQTT messaging, common in IoTUnencrypted, and brokers are often left open. Use 8883 with authentication.
1900UDPssdpSSDP device discovery (UPnP)Keep off the internet Should not face the internet. It is abused for amplification attacks.
2049TCP, UDPnfsNFS file sharingKeep off the internet Should not face the internet. NFS trusts client addresses and user IDs.
2181TCPeforwardApache ZooKeeper clients (by convention)Keep off the internet Should not face the internet. ZooKeeper has no authentication by default.
2375TCPdockerDocker Engine API, plain textKeep off the internet Must never face the internet. There is no authentication: whoever reaches this port is root on the host.
2376TCPdocker-sDocker Engine API over TLSKeep off the internet Should not face the internet. Safe only with client certificates, and it still means root on the host.
2377TCPswarmDocker Swarm cluster managementOnly between the nodes of the swarm.
2379TCPetcd-clientetcd client APIKeep off the internet Should not face the internet. In Kubernetes, etcd holds every Secret of the cluster.
2380TCPetcd-serveretcd peer communicationOnly between etcd members.
2483TCPttcOracle Database (registered port)Keep off the internet Should not face the internet.
2484TCPttc-sslOracle Database over TLS (registered port)Keep off the internet Should not face the internet.
3260TCPiscsi-targetiSCSI storageKeep off the internet Should not face the internet. Use a dedicated storage network.
3268TCPmsft-gcActive Directory Global CatalogKeep off the internet Should not face the internet.
3269TCPmsft-gc-sslActive Directory Global Catalog over TLSKeep off the internet Should not face the internet.
3306TCPmysqlMySQL and MariaDBKeep off the internet Should not face the internet. Databases belong behind the application, on a private network.
3389TCP, UDPms-wbt-serverRemote Desktop Protocol (RDP)Keep off the internet Should not face the internet. Exposed RDP is a leading way in for ransomware. Put it behind a VPN or a gateway.
3478TCP, UDPstunSTUN and TURN for NAT traversal (WebRTC)
3690TCPsvnSubversion (svnserve)
4369TCPepmdErlang port mapper, used by RabbitMQ and CouchDB clustersOnly between the nodes of the cluster.
4500UDPipsec-nat-tIPsec NAT traversal
4789UDPvxlanVXLAN overlay networksOnly between tunnel endpoints. VXLAN has no authentication.
5060TCP, UDPsipSIP telephony signalingScanned constantly for toll fraud.
5061TCPsipsSIP over TLS
5222TCPxmpp-clientXMPP client connections
5269TCPxmpp-serverXMPP server to server
5353UDPmdnsMulticast DNS (Bonjour, Avahi)Local network only.
5355UDPllmnrLLMNR name resolution on WindowsLocal network only. LLMNR is abused to capture credentials.
5432TCPpostgresqlPostgreSQLKeep off the internet Should not face the internet. Databases belong behind the application, on a private network.
5671TCPamqpsAMQP over TLS (RabbitMQ)
5672TCPamqpAMQP messaging (RabbitMQ)Keep off the internet Should not face the internet. Unencrypted, and often left with default credentials.
5900TCPrfbVNC remote desktopKeep off the internet Should not face the internet. VNC authentication is weak and often switched off.
5984TCPcouchdbCouchDB HTTP APIKeep off the internet Should not face the internet.
5985TCPwsmanWindows Remote Management (WinRM) over HTTPKeep off the internet Should not face the internet. It is remote command execution on Windows.
5986TCPwsmansWindows Remote Management (WinRM) over HTTPSKeep off the internet Should not face the internet.
6379TCPredisRedisKeep off the internet Should not face the internet. Redis was built for trusted networks, and an open instance gives data access and often code execution.
6443TCPsun-sr-httpsKubernetes API server (by convention)Restrict who can reach it. It is the control point of the whole cluster.
6514TCPsyslog-tlsSyslog over TLS
7474TCPneo4jNeo4j HTTP interfaceKeep off the internet Should not face the internet.
7687TCPboltNeo4j Bolt protocolKeep off the internet Should not face the internet.
8080TCPhttp-altAlternative HTTP port: proxies, application servers, admin consolesCheck what is really listening. Admin consoles on 8080 are a common find.
8443TCPpcsync-httpsAlternative HTTPS port (by convention)Check what is really listening. Admin consoles on 8443 are a common find.
8883TCPsecure-mqttMQTT over TLS
9042TCPNot assignedApache Cassandra CQL clients (by convention, not registered)Keep off the internet Should not face the internet.
9092TCPXmlIpcRegSvcApache Kafka brokers (by convention)Keep off the internet Should not face the internet. Kafka has no authentication by default.
9100TCPpdl-datastreamRaw printing (JetDirect)Keep off the internet Should not face the internet. Anyone who reaches it can print, and often read the printer’s memory.
9200TCPwap-wspElasticsearch and OpenSearch HTTP API (by convention)Keep off the internet Should not face the internet. Open clusters are a frequent source of data leaks.
9418TCPgitGit protocol (git://)No authentication and no encryption. Use HTTPS or SSH.
10050TCPzabbix-agentZabbix agentOnly the Zabbix server should reach it.
10250TCPNot assignedKubernetes kubelet API (by convention, not registered)Keep off the internet Should not face the internet. With anonymous access left on, it runs commands in any pod on the node.
11211TCP, UDPmemcacheMemcachedKeep off the internet Should not face the internet. No authentication by default, and over UDP it is abused for very large amplification attacks.
11434TCPollamaOllama model server APIKeep off the internet Should not face the internet. The API has no authentication: anyone who reaches it can run and replace models.
27017TCPmongodbMongoDBKeep off the internet Should not face the internet. Open MongoDB servers have been wiped and held for ransom many times.
51820UDPNot assignedWireGuard VPN (by convention, not registered)

Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.

How to use the common ports lookup

  1. Type a port number to find that port.
  2. Or type words, such as redis, database or tls, to search names and descriptions.
  3. Read the IANA name, what the port is used for and the exposure note.

About this tool

A port number tells a machine which program a connection is for. IANA keeps the registry of assignments: 22 for SSH, 443 for HTTPS, 5432 for PostgreSQL. Ports up to 1023 are system ports, 1024 to 49151 are registered to services, and the rest are for temporary use. Some widely used ports were never registered for their current use, and this table marks those as conventions.

Knowing the port is how you read a scan result or a firewall log. It is also how attackers pick targets: the whole IPv4 internet is scanned for common ports many times a day. A database, a cache or a management API that listens on a public address is found within hours, whether or not anything links to it.

The table flags the services that were built for trusted networks and should not face the internet: databases, Redis, Memcached, the Docker API, etcd, the kubelet, SMB, RDP and Telnet among them. A number is only a hint, though. Any program can listen on any port, so confirm what is really behind an open port before you judge it.

Sources

Questions

What are the most common ports?

For the web, 80 (HTTP) and 443 (HTTPS), and for name resolution 53 (DNS). Administration uses 22 (SSH) and 3389 (RDP), and mail uses 25, 465, 587, 993 and 995. Databases use 3306 (MySQL), 5432 (PostgreSQL), 1433 (SQL Server) and 27017 (MongoDB).

Which ports should never be open to the internet?

Anything built for a trusted network: database ports, Redis on 6379, Memcached on 11211, the Docker API on 2375, etcd on 2379, the kubelet on 10250, SMB on 445, RDP on 3389 and Telnet on 23. Reach them through a private network, a VPN or an SSH tunnel.

What is the difference between TCP and UDP ports?

They are separate number spaces: TCP port 53 and UDP port 53 are different sockets. TCP sets up a connection and delivers data reliably and in order. UDP sends single packets with no connection, which suits DNS queries, VoIP and VPN tunnels.

Does changing the SSH port make a server safer?

It cuts the noise from automated scans of port 22, and nothing more. A scan of all ports finds the service anyway. What protects SSH is key-only authentication, no root login with a password, and keeping the server patched.

Related tools