Common ports lookup
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.
| Port | Transport | IANA name | Used for | Exposure |
|---|---|---|---|---|
| 20 | TCP | ftp-data | FTP data transfer (active mode) | |
| 21 | TCP | ftp | FTP control connection | FTP sends passwords and files in clear text. Prefer SFTP or FTPS. |
| 22 | TCP | ssh | SSH: remote shell, SFTP and SCP | Fine to expose when it is key-only and patched. It is scanned and brute-forced constantly. |
| 23 | TCP | telnet | Telnet remote terminal | Keep off the internet Should not face the internet. Telnet has no encryption: logins cross the network in clear text. Use SSH. |
| 25 | TCP | smtp | SMTP: mail transfer between servers | |
| 43 | TCP | nicname | WHOIS lookups | |
| 49 | TCP | tacacs | TACACS+ device authentication | Keep on the management network. |
| 53 | TCP, UDP | domain | DNS | An open resolver is abused for amplification attacks. Only authoritative servers should answer the whole internet. |
| 67 | UDP | bootps | DHCP server | |
| 68 | UDP | bootpc | DHCP client | |
| 69 | UDP | tftp | TFTP: trivial file transfer | Keep off the internet Should not face the internet. TFTP has no authentication at all. |
| 79 | TCP | finger | Finger user information | Obsolete. It gives away account names. |
| 80 | TCP | http | HTTP: unencrypted web traffic | |
| 88 | TCP, UDP | kerberos | Kerberos authentication | Keep inside the network that uses it. |
| 110 | TCP | pop3 | POP3 mail retrieval | Clear text unless STARTTLS is used. Prefer port 995. |
| 111 | TCP, UDP | sunrpc | ONC 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. |
| 119 | TCP | nntp | NNTP: Usenet news | |
| 123 | UDP | ntp | NTP time synchronization | |
| 135 | TCP | epmap | Microsoft RPC endpoint mapper | Keep off the internet Should not face the internet. It is the entry point to Windows RPC services. |
| 137 | UDP | netbios-ns | NetBIOS name service | Keep off the internet Should not face the internet. |
| 138 | UDP | netbios-dgm | NetBIOS datagram service | Keep off the internet Should not face the internet. |
| 139 | TCP | netbios-ssn | NetBIOS session service (SMB over NetBIOS) | Keep off the internet Should not face the internet, like SMB on port 445. |
| 143 | TCP | imap | IMAP mail access | Clear text unless STARTTLS is used. Prefer port 993. |
| 161 | UDP | snmp | SNMP device monitoring | Keep off the internet Should not face the internet. SNMP v1 and v2c send their community string in clear text. |
| 162 | UDP | snmptrap | SNMP traps | |
| 179 | TCP | bgp | BGP routing between networks | Only between configured peers. |
| 389 | TCP, UDP | ldap | LDAP directory access | Keep off the internet Should not face the internet. It exposes the directory, and over UDP it is abused for amplification. |
| 443 | TCP, UDP | https | HTTPS: web traffic over TLS, and HTTP/3 over UDP | |
| 445 | TCP | microsoft-ds | SMB file and printer sharing | Keep off the internet Should not face the internet. SMB flaws such as EternalBlue spread worms like WannaCry. |
| 464 | TCP, UDP | kpasswd | Kerberos password change | |
| 465 | TCP | submissions | SMTP mail submission over implicit TLS | |
| 500 | UDP | isakmp | IKE key exchange for IPsec VPNs | |
| 512 | TCP | exec | rexec remote execution | Keep off the internet Should not face the internet. The r-services are obsolete and send everything in clear text. |
| 513 | TCP | login | rlogin remote login | Keep off the internet Should not face the internet. The r-services are obsolete and trust the caller’s address. |
| 514 | TCP | shell | rsh remote shell | Keep off the internet Should not face the internet. The r-services are obsolete and trust the caller’s address. |
| 514 | UDP | syslog | Syslog log forwarding | Not authenticated or encrypted. Keep on the internal network, or use syslog over TLS on 6514. |
| 515 | TCP | printer | LPD print spooler | Keep off the internet Should not face the internet. |
| 520 | UDP | router | RIP routing | |
| 546 | UDP | dhcpv6-client | DHCPv6 client | |
| 547 | UDP | dhcpv6-server | DHCPv6 server | |
| 548 | TCP | afpovertcp | Apple Filing Protocol file sharing | Keep off the internet Should not face the internet. |
| 554 | TCP | rtsp | RTSP media streaming, used by IP cameras | Cameras with RTSP open to the internet are found and watched by anyone. |
| 587 | TCP | submission | SMTP mail submission with STARTTLS | |
| 623 | UDP | asf-rmcp | IPMI remote management of server hardware | Keep off the internet Should not face the internet. IPMI gives control of the machine below the operating system, and its protocol leaks password hashes. |
| 631 | TCP | ipp | IPP printing (CUPS) | Keep off the internet Should not face the internet. |
| 636 | TCP | ldaps | LDAP over TLS | Keep inside the network that uses it. |
| 853 | TCP | domain-s | DNS over TLS | |
| 873 | TCP | rsync | rsync file synchronization | An rsync daemon is often left without a password. Do not expose it; run rsync over SSH. |
| 989 | TCP | ftps-data | FTPS data transfer | |
| 990 | TCP | ftps | FTPS control over implicit TLS | |
| 993 | TCP | imaps | IMAP over TLS | |
| 995 | TCP | pop3s | POP3 over TLS | |
| 1080 | TCP | socks | SOCKS proxy | An open proxy is found and abused within hours. |
| 1099 | TCP | rmiregistry | Java RMI registry | Keep off the internet Should not face the internet. Exposed RMI and JMX endpoints lead to remote code execution. |
| 1194 | UDP | openvpn | OpenVPN | |
| 1433 | TCP | ms-sql-s | Microsoft SQL Server | Keep off the internet Should not face the internet. Databases belong behind the application, on a private network. |
| 1434 | UDP | ms-sql-m | Microsoft SQL Server Browser | Keep off the internet Should not face the internet. It was the target of the SQL Slammer worm. |
| 1521 | TCP | ncube-lm | Oracle 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. |
| 1701 | UDP | l2tp | L2TP tunnels | |
| 1723 | TCP | pptp | PPTP VPN | PPTP’s encryption is broken. Replace it. |
| 1812 | UDP | radius | RADIUS authentication | |
| 1813 | UDP | radius-acct | RADIUS accounting | |
| 1883 | TCP | mqtt | MQTT messaging, common in IoT | Unencrypted, and brokers are often left open. Use 8883 with authentication. |
| 1900 | UDP | ssdp | SSDP device discovery (UPnP) | Keep off the internet Should not face the internet. It is abused for amplification attacks. |
| 2049 | TCP, UDP | nfs | NFS file sharing | Keep off the internet Should not face the internet. NFS trusts client addresses and user IDs. |
| 2181 | TCP | eforward | Apache ZooKeeper clients (by convention) | Keep off the internet Should not face the internet. ZooKeeper has no authentication by default. |
| 2375 | TCP | docker | Docker Engine API, plain text | Keep off the internet Must never face the internet. There is no authentication: whoever reaches this port is root on the host. |
| 2376 | TCP | docker-s | Docker Engine API over TLS | Keep off the internet Should not face the internet. Safe only with client certificates, and it still means root on the host. |
| 2377 | TCP | swarm | Docker Swarm cluster management | Only between the nodes of the swarm. |
| 2379 | TCP | etcd-client | etcd client API | Keep off the internet Should not face the internet. In Kubernetes, etcd holds every Secret of the cluster. |
| 2380 | TCP | etcd-server | etcd peer communication | Only between etcd members. |
| 2483 | TCP | ttc | Oracle Database (registered port) | Keep off the internet Should not face the internet. |
| 2484 | TCP | ttc-ssl | Oracle Database over TLS (registered port) | Keep off the internet Should not face the internet. |
| 3260 | TCP | iscsi-target | iSCSI storage | Keep off the internet Should not face the internet. Use a dedicated storage network. |
| 3268 | TCP | msft-gc | Active Directory Global Catalog | Keep off the internet Should not face the internet. |
| 3269 | TCP | msft-gc-ssl | Active Directory Global Catalog over TLS | Keep off the internet Should not face the internet. |
| 3306 | TCP | mysql | MySQL and MariaDB | Keep off the internet Should not face the internet. Databases belong behind the application, on a private network. |
| 3389 | TCP, UDP | ms-wbt-server | Remote 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. |
| 3478 | TCP, UDP | stun | STUN and TURN for NAT traversal (WebRTC) | |
| 3690 | TCP | svn | Subversion (svnserve) | |
| 4369 | TCP | epmd | Erlang port mapper, used by RabbitMQ and CouchDB clusters | Only between the nodes of the cluster. |
| 4500 | UDP | ipsec-nat-t | IPsec NAT traversal | |
| 4789 | UDP | vxlan | VXLAN overlay networks | Only between tunnel endpoints. VXLAN has no authentication. |
| 5060 | TCP, UDP | sip | SIP telephony signaling | Scanned constantly for toll fraud. |
| 5061 | TCP | sips | SIP over TLS | |
| 5222 | TCP | xmpp-client | XMPP client connections | |
| 5269 | TCP | xmpp-server | XMPP server to server | |
| 5353 | UDP | mdns | Multicast DNS (Bonjour, Avahi) | Local network only. |
| 5355 | UDP | llmnr | LLMNR name resolution on Windows | Local network only. LLMNR is abused to capture credentials. |
| 5432 | TCP | postgresql | PostgreSQL | Keep off the internet Should not face the internet. Databases belong behind the application, on a private network. |
| 5671 | TCP | amqps | AMQP over TLS (RabbitMQ) | |
| 5672 | TCP | amqp | AMQP messaging (RabbitMQ) | Keep off the internet Should not face the internet. Unencrypted, and often left with default credentials. |
| 5900 | TCP | rfb | VNC remote desktop | Keep off the internet Should not face the internet. VNC authentication is weak and often switched off. |
| 5984 | TCP | couchdb | CouchDB HTTP API | Keep off the internet Should not face the internet. |
| 5985 | TCP | wsman | Windows Remote Management (WinRM) over HTTP | Keep off the internet Should not face the internet. It is remote command execution on Windows. |
| 5986 | TCP | wsmans | Windows Remote Management (WinRM) over HTTPS | Keep off the internet Should not face the internet. |
| 6379 | TCP | redis | Redis | Keep 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. |
| 6443 | TCP | sun-sr-https | Kubernetes API server (by convention) | Restrict who can reach it. It is the control point of the whole cluster. |
| 6514 | TCP | syslog-tls | Syslog over TLS | |
| 7474 | TCP | neo4j | Neo4j HTTP interface | Keep off the internet Should not face the internet. |
| 7687 | TCP | bolt | Neo4j Bolt protocol | Keep off the internet Should not face the internet. |
| 8080 | TCP | http-alt | Alternative HTTP port: proxies, application servers, admin consoles | Check what is really listening. Admin consoles on 8080 are a common find. |
| 8443 | TCP | pcsync-https | Alternative HTTPS port (by convention) | Check what is really listening. Admin consoles on 8443 are a common find. |
| 8883 | TCP | secure-mqtt | MQTT over TLS | |
| 9042 | TCP | Not assigned | Apache Cassandra CQL clients (by convention, not registered) | Keep off the internet Should not face the internet. |
| 9092 | TCP | XmlIpcRegSvc | Apache Kafka brokers (by convention) | Keep off the internet Should not face the internet. Kafka has no authentication by default. |
| 9100 | TCP | pdl-datastream | Raw printing (JetDirect) | Keep off the internet Should not face the internet. Anyone who reaches it can print, and often read the printer’s memory. |
| 9200 | TCP | wap-wsp | Elasticsearch and OpenSearch HTTP API (by convention) | Keep off the internet Should not face the internet. Open clusters are a frequent source of data leaks. |
| 9418 | TCP | git | Git protocol (git://) | No authentication and no encryption. Use HTTPS or SSH. |
| 10050 | TCP | zabbix-agent | Zabbix agent | Only the Zabbix server should reach it. |
| 10250 | TCP | Not assigned | Kubernetes 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. |
| 11211 | TCP, UDP | memcache | Memcached | Keep off the internet Should not face the internet. No authentication by default, and over UDP it is abused for very large amplification attacks. |
| 11434 | TCP | ollama | Ollama model server API | Keep off the internet Should not face the internet. The API has no authentication: anyone who reaches it can run and replace models. |
| 27017 | TCP | mongodb | MongoDB | Keep off the internet Should not face the internet. Open MongoDB servers have been wiped and held for ransom many times. |
| 51820 | UDP | Not assigned | WireGuard 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
- Type a port number to find that port.
- Or type words, such as redis, database or tls, to search names and descriptions.
- 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
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).
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.
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.
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.