Risk is how risky a port is to leave open to the internet. High: never expose it. Medium: only if you need it, and locked down. Low: built to face the internet. Click a port number for the commands to check it and how to lock it down.
| Port | Protocol | Service | Risk | What it is |
|---|---|---|---|---|
| 20 | TCP | FTP data | High | Carries file contents for active-mode FTP, unencrypted, alongside the control channel on port 21. |
| 21 | TCP | FTP | High | File Transfer Protocol. Usernames, passwords and files cross the network as plain text, and anonymous logins are often left on. |
| 22 | TCP | SSH | Low | Secure Shell: encrypted remote logins, file copies (scp, sftp) and tunnels. Built for the internet, but it gets constant password-guessing traffic. |
| 23 | TCP | Telnet | High | Old remote login that sends everything, passwords included, as plain text. Still found on switches, printers and IoT devices, and a favourite of botnets. |
| 25 | TCP | SMTP | Medium | Mail servers delivering mail to each other. A mail server needs it open; anything else listening may be an open relay that spammers will find. |
| 53 | TCP/UDP | DNS | Medium | Name lookups. An authoritative server has to answer the internet; a resolver that answers anyone gets used in DDoS amplification attacks. |
| 67 | UDP | DHCP server | Medium | Hands out IP addresses on a local network. Never needed from the internet, and a rogue DHCP server on a LAN can redirect traffic. |
| 68 | UDP | DHCP client | Low | Where machines receive DHCP answers. Open on almost every machine that gets its address automatically. |
| 69 | UDP | TFTP | High | Trivial FTP, used for network booting (PXE) and to load firmware and configs onto network gear. No login at all: anyone who reaches it can read files, and often write them. |
| 80 | TCP | HTTP | Medium | Unencrypted web traffic. Fine to leave open when it only redirects to HTTPS and answers Let’s Encrypt checks. |
| 88 | TCP/UDP | Kerberos | High | Sign-in tickets for Active Directory and other Kerberos realms. Every domain controller listens, and attackers use it for password spraying and ticket attacks (AS-REP roasting, Kerberoasting). |
| 110 | TCP | POP3 | High | Downloads mail, with the password sent as plain text unless STARTTLS is forced. |
| 111 | TCP/UDP | rpcbind (portmapper) | High | Tells clients which ports NFS and other RPC services use. It shows what’s running and has been used for DDoS amplification. |
| 123 | UDP | NTP | Medium | Time sync. Old servers that answer monlist queries were used for huge DDoS amplification attacks. |
| 135 | TCP | Microsoft RPC endpoint mapper | High | Windows uses it to find the dynamic ports (49152–65535) for WMI, DCOM, AD replication and remote management. It has a long history of worms. |
| 137 | UDP | NetBIOS name service | High | Old Windows name lookups. It leaks computer and user names and can be spoofed to collect password hashes. |
| 138 | UDP | NetBIOS datagram | High | Old Windows network browsing and announcements. Not needed on modern networks. |
| 139 | TCP | NetBIOS session (SMB) | High | File and printer sharing over NetBIOS, the older way to reach SMB. Same risks as port 445. |
| 143 | TCP | IMAP | High | Reads mail on the server, with the password sent as plain text unless STARTTLS is forced. |
| 161 | UDP | SNMP | High | Monitoring and managing network gear. Default community strings like public and private give away the whole config, sometimes with write access. |
| 162 | UDP | SNMP traps | Medium | Devices send alerts (traps) to the monitoring server here. |
| 179 | TCP | BGP | Medium | Routers exchanging routes, and Calico in Kubernetes. Only your configured peers should ever reach it. |
| 389 | TCP/UDP | LDAP | High | Directory lookups for Active Directory, OpenLDAP and others. Simple binds send passwords as plain text, and anonymous binds can leak every user. |
| 443 | TCP/UDP | HTTPS | Low | Encrypted web traffic, plus many APIs and VPNs (UDP 443 is HTTP/3). Built to face the internet; the risk is in what’s behind it. |
| 445 | TCP | SMB | High | Windows file sharing, and Samba. WannaCry and many ransomware attacks spread through it. |
| 464 | TCP/UDP | Kerberos password change | High | Used when Kerberos users change their passwords (kpasswd). Every domain controller listens. |
| 465 | TCP | SMTPS (mail submission over TLS) | Low | Mail apps sending mail through your server, encrypted from the first byte. |
| 500 | UDP | IKE (IPsec VPN) | Low | Sets up IPsec VPN tunnels. Built for the internet, but old IKEv1 aggressive mode can leak password hashes. |
| 514 | UDP | Syslog | Medium | Log messages sent to a log server, unencrypted and with no check of who sent them. (TCP 514 is the old rsh, which should be off.) |
| 587 | TCP | SMTP submission | Low | Mail apps sending mail through your server, with STARTTLS and a login. |
| 631 | TCP | IPP (CUPS printing) | Medium | Printing to CUPS and network printers. CUPS has had serious remote bugs, and open printers can leak documents. |
| 636 | TCP | LDAPS | Medium | LDAP over TLS: directory lookups with the password encrypted. |
| 853 | TCP | DNS over TLS | Low | Encrypted DNS lookups from clients that support it, such as Android and systemd-resolved. |
| 873 | TCP | rsync daemon | High | rsync without SSH. Modules without a password let anyone list and download files, and sometimes upload them. |
| 902 | TCP | VMware ESXi | High | Remote console and management traffic for ESXi hosts. Exposed ESXi hosts have been hit hard by ransomware. |
| 990 | TCP | FTPS | Medium | FTP over TLS (implicit). Encrypted, but still FTP, with its extra range of data ports. |
| 993 | TCP | IMAPS | Low | IMAP over TLS: reading mail on an encrypted connection. |
| 995 | TCP | POP3S | Low | POP3 over TLS: downloading mail on an encrypted connection. |
| 1080 | TCP | SOCKS proxy | High | A proxy that forwards any traffic. Left open, attackers use it to hide behind your address. |
| 1194 | UDP | OpenVPN | Low | OpenVPN’s default port (UDP, sometimes TCP). Built for the internet. |
| 1433 | TCP | Microsoft SQL Server | High | SQL Server’s default instance. Exposed servers get constant password guessing against the sa account. |
| 1434 | UDP | SQL Server Browser | High | Tells clients which port each named SQL Server instance uses. It leaks instance names, and the Slammer worm spread through it. |
| 1521 | TCP | Oracle database listener | High | Clients connect to Oracle databases here. |
| 1688 | TCP | KMS (Windows activation) | Medium | Windows and Office clients activating against your Key Management Service host. |
| 1701 | UDP | L2TP | Medium | Layer 2 tunnelling, usually wrapped in IPsec (L2TP/IPsec). Without IPsec, nothing is encrypted. |
| 1723 | TCP | PPTP | High | An old VPN protocol whose encryption (MS-CHAPv2) is broken. |
| 1812 | UDP | RADIUS authentication | Medium | Network gear, Wi-Fi and VPNs checking logins against a RADIUS server. |
| 1813 | UDP | RADIUS accounting | Medium | Session start and stop records sent to the RADIUS server. |
| 1883 | TCP | MQTT | High | Lightweight messaging for IoT devices, unencrypted. Many brokers let anyone read and publish. |
| 1900 | UDP | SSDP (UPnP) | High | Devices announcing themselves on a LAN. Reachable from the internet, it’s used for DDoS amplification, and UPnP can open holes in your firewall. |
| 2049 | TCP/UDP | NFS | High | Unix and Linux file sharing. Exports to * or without root_squash let anyone mount them, sometimes as root. |
| 2181 | TCP | ZooKeeper | High | Coordination for Kafka and Hadoop clusters. Often runs with no login, so anyone who reaches it can read and change cluster data. |
| 2222 | TCP | SSH (alternate port) | Low | A common second SSH port, used to cut log noise and by many containers and appliances. |
| 2375 | TCP | Docker API (no TLS) | High | Docker’s remote API with no encryption or login. Anyone who reaches it can start a container that owns the host, and crypto-miners scan for it constantly. |
| 2376 | TCP | Docker API (TLS) | High | Docker’s remote API over TLS. Safe only when it checks client certificates (tlsverify). |
| 2377 | TCP | Docker Swarm management | High | Swarm managers and workers joining and running the cluster. |
| 2379 | TCP | etcd client | High | Kubernetes’ database of everything, Secrets included. An exposed etcd without TLS hands over the cluster. |
| 2380 | TCP | etcd peer | High | etcd members copying data to each other. |
| 3000 | TCP | Grafana (and dev servers) | Medium | Grafana’s default port, and the default for many Node.js dev servers. |
| 3128 | TCP | Squid proxy | High | Squid’s default port. An open proxy gets found and abused quickly. |
| 3260 | TCP | iSCSI | High | Disk storage over the network. Without CHAP, anyone who reaches it can attach your disks. |
| 3268 | TCP | Global Catalog (AD) | High | Forest-wide directory lookups on Active Directory global catalog servers. |
| 3269 | TCP | Global Catalog over TLS (AD) | High | Global catalog lookups over TLS. |
| 3306 | TCP | MySQL / MariaDB | High | MySQL and MariaDB. Exposed servers face constant password guessing, and many have had their data swapped for a ransom note. |
| 3389 | TCP/UDP | RDP (Remote Desktop) | High | Windows Remote Desktop (UDP 3389 makes it smoother). One of the most common ways in for ransomware gangs. |
| 4500 | UDP | IPsec NAT traversal | Low | IPsec traffic wrapped in UDP so it can pass through NAT. |
| 4789 | UDP | VXLAN | Medium | Overlay networks for Docker Swarm, Kubernetes networking and data centers (Flannel uses 8472). No encryption or login: anyone who can send to it can inject traffic. |
| 5000 | TCP | Docker Registry (and dev servers) | Medium | The default for a private Docker registry and for Flask’s dev server. macOS uses it for AirPlay. |
| 5044 | TCP | Logstash Beats input | Medium | Filebeat and other Beats shipping logs to Logstash. |
| 5060 | TCP/UDP | SIP | High | Sets up VoIP calls. Exposed phone systems get scanned for weak extension passwords and used for toll fraud. |
| 5061 | TCP | SIP over TLS | Medium | Encrypted VoIP call setup. |
| 5353 | UDP | mDNS (Bonjour) | Medium | Devices finding each other on a LAN (printers, AirPlay, .local names). Meant for the local network only; reachable from outside, it leaks device details and amplifies DDoS. |
| 5355 | UDP | LLMNR | High | Windows’ fallback name lookup on a LAN. Attackers answer the lookups (with tools like Responder) and collect password hashes. |
| 5432 | TCP | PostgreSQL | High | PostgreSQL. Exposed servers face password guessing, and a superuser login can run shell commands. |
| 5601 | TCP | Kibana | High | Kibana’s web interface for Elasticsearch. With security off, anyone can read every log. |
| 5666 | TCP | Nagios NRPE | Medium | The Nagios server asking an agent to run checks. If command arguments are allowed, a caller can run almost anything. |
| 5671 | TCP | AMQP over TLS | Medium | RabbitMQ and other AMQP message brokers over TLS. |
| 5672 | TCP | AMQP (RabbitMQ) | High | RabbitMQ and other AMQP message brokers, unencrypted. |
| 5900 | TCP | VNC | High | Remote desktop for Linux, macOS Screen Sharing and appliances. Often weak or no passwords, and often no encryption. |
| 5985 | TCP | WinRM (HTTP) | High | Windows Remote Management, used by PowerShell remoting and Ansible. Messages are encrypted by Kerberos or NTLM, but a valid password gives a remote shell. |
| 5986 | TCP | WinRM (HTTPS) | High | PowerShell remoting and Ansible over TLS. |
| 6000 | TCP | X11 | High | The X window system accepting remote programs. An open X server lets anyone watch the screen and type keystrokes. |
| 6379 | TCP | Redis | High | Redis. Instances exposed without a password get taken over within minutes and used to plant SSH keys or crypto-miners. |
| 6443 | TCP | Kubernetes API server | Medium | kubectl and every cluster component talk to the cluster here. Often reachable on managed clusters, but anonymous access or a leaked kubeconfig hands over the cluster. |
| 6514 | TCP | Syslog over TLS | Low | Encrypted syslog between machines and log servers. |
| 8000 | TCP | HTTP (alternate, dev servers) | Medium | Python’s http.server, Django’s dev server and many apps. |
| 8006 | TCP | Proxmox VE web interface | High | The Proxmox management interface, which controls every VM on the host. |
| 8080 | TCP | HTTP (alternate) | Medium | Tomcat, Jenkins, proxies and many admin panels. Often a forgotten admin page with a default password. |
| 8086 | TCP | InfluxDB | High | InfluxDB’s HTTP API. Older versions shipped with no login. |
| 8089 | TCP | Splunk management | High | Splunk’s REST API, used by search heads and the deployment server. |
| 8200 | TCP | HashiCorp Vault | Medium | Vault’s API and web interface, holding your secrets. Apps need to reach it, which makes it a prime target. |
| 8443 | TCP | HTTPS (alternate) | Medium | Admin consoles, Kubernetes dashboards and appliance web interfaces. |
| 8500 | TCP | Consul HTTP API | High | Consul’s API and web interface. Without ACLs, anyone can read and change service config, and older setups could run scripts. |
| 8530 | TCP | WSUS (HTTP) | Medium | Windows Server Update Services handing out updates to clients. |
| 8531 | TCP | WSUS (HTTPS) | Medium | Windows Server Update Services over TLS. |
| 8883 | TCP | MQTT over TLS | Medium | IoT messaging over TLS. |
| 8888 | TCP | Jupyter (and alternate HTTP) | High | Jupyter Notebook’s default port. An open notebook runs any code anyone types. |
| 9000 | TCP | PHP-FPM (also MinIO, SonarQube) | High | PHP-FPM listens here by default, and anyone who can reach FastCGI can run PHP. MinIO and SonarQube use 9000 too. |
| 9090 | TCP | Prometheus (also Cockpit) | High | Prometheus’ web interface and API, with no login by default, showing every target and metric. Cockpit’s web console uses 9090 too. |
| 9092 | TCP | Kafka | High | Kafka brokers. The default listener has no encryption or login. |
| 9093 | TCP | Alertmanager | High | Prometheus Alertmanager, with no login by default: anyone who reaches it can silence your alerts. |
| 9100 | TCP | Node exporter (also printers) | Medium | Prometheus node exporter’s metrics, and raw printing (JetDirect) on network printers. |
| 9200 | TCP | Elasticsearch | High | Elasticsearch’s REST API. Exposed clusters have leaked billions of records and been wiped for ransom. |
| 9300 | TCP | Elasticsearch transport | High | Nodes in an Elasticsearch cluster talking to each other. |
| 9389 | TCP | AD Web Services | High | Active Directory Web Services, used by the PowerShell AD module and Admin Center. |
| 9418 | TCP | Git daemon | Medium | git:// clones, read-only, with no encryption or login. |
| 9997 | TCP | Splunk forwarder input | Medium | Universal forwarders sending data to Splunk indexers. |
| 10050 | TCP | Zabbix agent | Medium | The Zabbix server polling an agent. |
| 10051 | TCP | Zabbix server | Medium | Agents and proxies sending data to the Zabbix server. |
| 10250 | TCP | kubelet API | High | The agent on every Kubernetes node. With anonymous access on, anyone can run commands in your pods. |
| 10255 | TCP | kubelet read-only | High | An old kubelet port that lists every pod without a login. Off in newer setups. |
| 11211 | TCP/UDP | Memcached | High | Memcached has no login, and its UDP port powered record-breaking DDoS amplification attacks in 2018. |
| 15672 | TCP | RabbitMQ management | High | RabbitMQ’s web interface and HTTP API. |
| 27017 | TCP | MongoDB | High | MongoDB. Old versions had no login by default, and tens of thousands of open databases were wiped for ransom. |
| 51820 | UDP | WireGuard | Low | WireGuard’s usual port (each interface sets its own). It stays silent to anyone without a valid key. |
⚠️ IMPORTANT DISCLAIMER: The tools and scripts on this site are provided "AS IS" for educational purposes.
Review destructive commands before executing. By using this site, you assume all risk and agree to our Full Terms of Service.
Search over 100 common ports, or pick one to see the service that usually runs on it, how risky it is to leave open to the internet, how to lock it down, and the commands to check it from another machine and on the server. Every port has its own link, such as #3389 for RDP.
20–21 FTP, 22 SSH, 23 Telnet, 25 SMTP, 53 DNS, 80 HTTP, 110 POP3, 143 IMAP, 443 HTTPS, 445 SMB, 3306 MySQL, 3389 RDP, 5432 PostgreSQL, 6379 Redis, 8080 alternative HTTP and 27017 MongoDB.
Telnet (23), SMB (445), RDP (3389), and databases and caches such as MySQL (3306), PostgreSQL (5432), Redis (6379), Elasticsearch (9200) and MongoDB (27017). Put them behind a VPN or allow only specific IP addresses; exposed databases and RDP are among the most attacked services.
sudo ss -tulpn lists listening TCP and UDP ports and the process behind each. A service listening on 127.0.0.1 is only reachable locally, while 0.0.0.0 or [::] means every interface.
nmap -sV host scans the 1,000 most common TCP ports and identifies the services; add -p- for all 65,535 ports, or -sU for UDP (slow, needs root). Only scan systems you own or have permission to test.
Domain controllers use 53 (DNS), 88 (Kerberos), 123 (NTP, UDP), 135 (RPC endpoint mapper), 389 (LDAP), 445 (SMB), 464 (Kerberos password change), 636 (LDAPS), 3268–3269 (Global Catalog), 9389 (AD Web Services) and the dynamic RPC range 49152–65535. Keep every one of them off the internet, and allow them only from the machines that need them.
Control-plane nodes use 6443 (API server), 2379–2380 (etcd), 10250 (kubelet), 10257 (controller manager) and 10259 (scheduler). Worker nodes use 10250, 10256 (kube-proxy) and 30000–32767 for NodePort services. Your network plugin adds its own, such as UDP 4789 or 8472 for VXLAN, or TCP 179 for Calico’s BGP. Only 6443 and the NodePorts you mean to publish should be reachable from outside the cluster.
TCP sets up a connection and guarantees delivery, so it’s used for SSH, HTTP and databases. UDP sends packets with no connection, used for DNS, NTP, VPNs and streaming. The same number can mean different services on TCP and UDP, and a firewall must allow the right protocol.
Related tools: Firewall Rule Generator · Security Header Tester · All tools A–Z
Most tools run entirely in your browser. Tools marked 📡 contact outside services, as listed in the Privacy Policy. Review commands before you run them; see the Terms.