108 common TCP and UDP ports. Search by number, service or what it's for.

Try

To see what's listening on a machine, try Networking: Ports and connections. To check a machine from outside, see nmap: Port scans. Services can run on any port, so these are the usual ones, not guarantees.

Web #

  • 80 TCP HTTP Unencrypted Websites without encryption. Mostly used now to redirect to HTTPS. Commands: Networking: Web requests with curl
  • 443 TCP, UDP HTTPS Websites and APIs over TLS. HTTP/3 (QUIC) uses UDP 443. Commands: Networking: Web requests with curl, PowerShell: Web requests and APIs
  • 8080 TCP HTTP alternate Unencrypted Proxies, development servers and admin panels.
  • 8443 TCP HTTPS alternate HTTPS on another port, often for admin panels and appliances.
  • 3128 TCP HTTP proxy Squid's default port. Proxmox also uses it for its SPICE proxy.

Remote access #

  • 22 TCP SSH Encrypted remote shell, plus file transfer with SFTP and SCP. Commands: Linux: SSH, Networking: SSH tunnels, Cisco IOS: SSH and remote access
  • 23 TCP Telnet Unencrypted Remote shell with no encryption. Still found on old network gear. Use SSH instead. Commands: Cisco IOS: SSH and remote access
  • 3389 TCP, UDP RDP Windows Remote Desktop. Keep it off the internet and behind a VPN.
  • 5900 TCP VNC Unencrypted Remote desktop for Linux and macOS Screen Sharing. Displays count up from 5900, and the Proxmox console uses 5900 to 5999.
  • 5985 TCP WinRM (HTTP) PowerShell remoting. The HTTP transport, though Windows still encrypts the session. Commands: PowerShell: Remoting
  • 5986 TCP WinRM (HTTPS) PowerShell remoting over TLS. Commands: PowerShell: Remoting

File transfer and storage #

  • 20 TCP FTP data Unencrypted The data connection in active-mode FTP.
  • 21 TCP FTP Unencrypted FTP commands and logins, sent in plain text. Use SFTP on port 22 instead.
  • 990 TCP FTPS FTP over TLS from the start of the connection (implicit FTPS).
  • 69 UDP TFTP Unencrypted Simple file transfer with no logins. Used for network boot and copying configs and firmware to network gear. Commands: Cisco IOS: Save and back up the config, Cisco IOS: Reload and files
  • 445 TCP SMB Windows file and printer sharing, and Samba. Never expose it to the internet. Commands: Windows CMD: Shares and network drives, PowerShell: Shares and network drives
  • 137–139 TCP, UDP NetBIOS Unencrypted Old Windows names and file sharing that came before SMB on 445. Turn it off where you can.
  • 2049 TCP, UDP NFS Network file sharing for Linux and Unix. NFSv4 needs only TCP 2049.
  • 111 TCP, UDP rpcbind Tells clients which ports RPC services such as NFSv3 are using.
  • 873 TCP rsync Unencrypted The rsync daemon. rsync over SSH uses port 22 and is encrypted.
  • 3260 TCP iSCSI Block storage over the network, for SANs and shared VM storage. Commands: Proxmox: Storage
  • 548 TCP AFP Apple Filing Protocol. Older macOS file sharing, replaced by SMB.

Email #

  • 25 TCP SMTP Mail between mail servers. Many home internet providers block it.
  • 587 TCP SMTP submission Sending mail from an app or mail client, upgraded to TLS with STARTTLS.
  • 465 TCP SMTPS Sending mail from an app or mail client over TLS from the start.
  • 143 TCP IMAP Unencrypted Reading mail on the server. Unencrypted unless upgraded with STARTTLS. Prefer 993.
  • 993 TCP IMAPS IMAP over TLS.
  • 110 TCP POP3 Unencrypted Downloading mail. Unencrypted unless upgraded with STARTTLS. Prefer 995.
  • 995 TCP POP3S POP3 over TLS.

Names, addresses and time #

  • 53 TCP, UDP DNS Looking up names. UDP for most queries, TCP for large answers and zone transfers. Commands: Networking: DNS
  • 853 TCP, UDP DNS over TLS Encrypted DNS. DNS over QUIC uses UDP 853. DNS over HTTPS uses 443.
  • 67 UDP DHCP server Hands out IP addresses. Servers and relays listen here. Commands: Cisco IOS: DHCP server and relay
  • 68 UDP DHCP client Where clients receive DHCP replies. Commands: Cisco IOS: DHCP server and relay
  • 546–547 UDP DHCPv6 DHCP for IPv6: 546 for clients, 547 for servers and relays.
  • 123 UDP NTP Keeping clocks in sync. Logins, certificates and logs all depend on the right time.
  • 5353 UDP mDNS Finding .local names and devices on the local network: Bonjour and Avahi.
  • 5355 UDP LLMNR Unencrypted Windows name lookups on the local network. Attackers abuse it to capture logins, so turn it off.

Directory and login #

Network devices and monitoring #

  • 161 UDP SNMP Unencrypted Polling devices for stats. SNMPv1 and v2c send the community string in plain text, so use v3. Commands: Cisco IOS: Logging and SNMP, Cisco NX-OS: TACACS+, logging and SNMP
  • 162 UDP SNMP traps Alerts sent from devices to a monitoring server. Commands: Cisco IOS: Logging and SNMP
  • 514 UDP Syslog Unencrypted Sending logs to a central server, in plain text. Commands: Cisco IOS: Logging and SNMP, Linux: Logs
  • 6514 TCP Syslog over TLS Sending logs to a central server, encrypted.
  • 830 TCP NETCONF Configuring network devices with structured data over SSH.
  • 179 TCP BGP Routers exchanging routes with BGP. Commands: Cisco IOS: BGP, Cisco NX-OS: BGP
  • 520 UDP RIP An old distance-vector routing protocol.
  • 646 TCP, UDP LDP Label distribution for MPLS.
  • 1985 UDP HSRP Cisco gateway redundancy. HSRP for IPv6 uses UDP 2029. Commands: Cisco IOS: Gateway redundancy (HSRP), Cisco NX-OS: Gateway redundancy (HSRP)
  • 3784 UDP BFD Fast link failure detection for routing protocols.
  • 9090 TCP Prometheus The Prometheus server and web interface.
  • 3000 TCP Grafana Grafana dashboards. Also a common port for web development servers.
  • 10050 TCP Zabbix agent The Zabbix server polling an agent.
  • 10051 TCP Zabbix server Agents and proxies sending data to the Zabbix server.

VPNs and tunnels #

  • 500 UDP IKE Setting up IPsec VPNs. Also needs IP protocol 50 (ESP), or UDP 4500 through NAT.
  • 4500 UDP IPsec NAT traversal IPsec wrapped in UDP so it gets through NAT.
  • 51820 UDP WireGuard WireGuard's usual port. It can be changed.
  • 1194 UDP, TCP OpenVPN OpenVPN's default port. UDP is faster; TCP gets through stricter firewalls.
  • 1701 UDP L2TP L2TP tunnels, normally run inside IPsec.
  • 1723 TCP PPTP Unencrypted An old VPN with broken encryption. Don't use it.
  • 4789 UDP VXLAN Layer 2 networks over layer 3, including Docker Swarm overlay networks. Commands: Docker: Swarm

Databases and messaging #

  • 3306 TCP MySQL and MariaDB MySQL and MariaDB servers.
  • 5432 TCP PostgreSQL PostgreSQL servers.
  • 1433 TCP SQL Server Microsoft SQL Server's default instance.
  • 1434 UDP SQL Server Browser Tells clients which port a named SQL Server instance is on.
  • 1521 TCP Oracle The Oracle database listener.
  • 27017 TCP MongoDB MongoDB servers.
  • 6379 TCP Redis Redis and Valkey. Keep them off the internet and set a password.
  • 11211 TCP, UDP Memcached Memcached. UDP has been abused for DDoS attacks and is off by default in new versions.
  • 9200 TCP Elasticsearch The Elasticsearch and OpenSearch REST API. Nodes talk to each other on 9300.
  • 5672 TCP AMQP RabbitMQ and other AMQP brokers. RabbitMQ's web interface is on 15672.
  • 9092 TCP Kafka Apache Kafka brokers.
  • 1883 TCP MQTT Unencrypted Messaging for IoT and smart home devices.
  • 8883 TCP MQTT over TLS MQTT, encrypted.

Containers and DevOps #

  • 2375 TCP Docker API Unencrypted The Docker API without TLS. Anyone who can reach it controls the host, so never open it. Commands: Docker: Remote hosts and contexts
  • 2376 TCP Docker API over TLS The Docker API with TLS. SSH is usually simpler for remote Docker. Commands: Docker: Remote hosts and contexts
  • 2377 TCP Docker Swarm Swarm cluster management between managers and workers. Commands: Docker: Swarm
  • 7946 TCP, UDP Docker Swarm discovery Swarm nodes finding each other. Commands: Docker: Swarm
  • 5000 TCP Container registry The default for a self-hosted Docker registry. macOS AirPlay Receiver also uses 5000 and 7000.
  • 6443 TCP Kubernetes API The Kubernetes API server, used by kubectl.
  • 10250 TCP Kubelet The kubelet API on each Kubernetes node.
  • 2379–2380 TCP etcd etcd, which stores Kubernetes cluster state: 2379 for clients, 2380 between members.
  • 8200 TCP Vault The HashiCorp Vault API and web interface.
  • 8500 TCP Consul The HashiCorp Consul HTTP API and web interface.
  • 9418 TCP Git Unencrypted The git:// protocol: read-only, with no logins or encryption. Clone over SSH or HTTPS instead.

Virtualisation #

Voice, video and home #

  • 5060 TCP, UDP SIP Unencrypted Setting up VoIP calls.
  • 5061 TCP SIP over TLS Setting up VoIP calls, encrypted.
  • 3478 UDP, TCP STUN and TURN Helping video calls and WebRTC get through NAT.
  • 554 TCP, UDP RTSP Unencrypted Video streams from IP cameras and NVRs.
  • 1900 UDP SSDP (UPnP) Finding devices on the local network. Abused for DDoS attacks, so never expose it.
  • 32400 TCP Plex Plex Media Server.
  • 8096 TCP Jellyfin Jellyfin's web interface over HTTP. HTTPS is on 8920.
  • 8123 TCP Home Assistant Home Assistant's web interface.
  • 9443 TCP Portainer Portainer's web interface over HTTPS.

Printing #

  • 631 TCP IPP The Internet Printing Protocol, used by CUPS, AirPrint and most modern printers.
  • 9100 TCP Raw printing Sending jobs straight to a printer (JetDirect). Also Prometheus Node Exporter's port.
  • 515 TCP LPD The old Line Printer Daemon protocol.

Not ports: IP protocols #

Some traffic isn't TCP or UDP, so it has no port. Firewall rules match these by IP protocol number instead.

  • 1 IP protocol ICMP Ping, traceroute and error messages. ICMPv6 is 58.
  • 6 IP protocol TCP Reliable connections. Most of the ports above.
  • 17 IP protocol UDP Fast, connectionless traffic such as DNS, VPNs and voice.
  • 47 IP protocol GRE Generic tunnels, and PPTP.
  • 50 IP protocol ESP Encrypted IPsec traffic.
  • 51 IP protocol AH IPsec authentication without encryption. Rarely used.
  • 88 IP protocol EIGRP Cisco's EIGRP routing protocol.
  • 89 IP protocol OSPF OSPF routing.
  • 112 IP protocol VRRP Gateway redundancy, the open standard to HSRP.