Common port numbers

What runs on each well-known TCP and UDP port, whether it is safe to expose, and a one-click check for each. Select a port for its full page.

PortServiceProtocolExpose?
20FTP data
File Transfer Protocol (data channel, active mode)
TCP No
21FTP
File Transfer Protocol (control channel)
TCP No
22SSH
Secure Shell (SSH, SFTP, SCP)
TCP With care
23Telnet
Telnet remote terminal
TCP No
25SMTP
Simple Mail Transfer Protocol (server-to-server relay)
TCP With care
53DNS
Domain Name System
TCP/UDP With care
67DHCP server
DHCP / BOOTP (server side)
UDP With care
68DHCP client
DHCP / BOOTP (client side)
UDP Yes
69TFTP
Trivial File Transfer Protocol
UDP No
80HTTP
Hypertext Transfer Protocol
TCP Yes
110POP3
Post Office Protocol v3
TCP With care
123NTP
Network Time Protocol
UDP With care
135MS RPC
Microsoft RPC endpoint mapper (DCOM)
TCP No
137NetBIOS name
NetBIOS Name Service
UDP No
139NetBIOS session
NetBIOS Session Service (SMB over NetBIOS)
TCP No
143IMAP
Internet Message Access Protocol
TCP With care
161SNMP
Simple Network Management Protocol
UDP No
162SNMP trap
SNMP traps and notifications
UDP With care
389LDAP
Lightweight Directory Access Protocol
TCP/UDP No
443HTTPS
HTTP over TLS (and HTTP/3 over QUIC on UDP)
TCP/UDP Yes
445SMB
Server Message Block (Windows file sharing)
TCP No
465SMTPS
SMTP submission over implicit TLS
TCP Yes
514Syslog
Syslog
UDP With care
587SMTP submission
Mail submission (STARTTLS)
TCP Yes
636LDAPS
LDAP over TLS
TCP With care
853DNS over TLS
DNS over TLS (DoT)
TCP Yes
990FTPS
FTP over implicit TLS
TCP With care
993IMAPS
IMAP over TLS
TCP Yes
995POP3S
POP3 over TLS
TCP Yes
1194OpenVPN
OpenVPN
UDP Yes
1433MS SQL
Microsoft SQL Server
TCP No
1521Oracle DB
Oracle Database listener (TNS)
TCP No
1883MQTT
MQTT (IoT messaging)
TCP No
2049NFS
Network File System
TCP/UDP No
3000Dev server
Common development / app port (Node.js, Grafana, Rails)
TCP With care
3306MySQL
MySQL / MariaDB
TCP No
3389RDP
Remote Desktop Protocol
TCP/UDP No
5000App / UPnP
Flask dev server, Synology DSM, macOS AirPlay Receiver
TCP With care
5060SIP
Session Initiation Protocol (VoIP)
TCP/UDP No
5432PostgreSQL
PostgreSQL
TCP No
5900VNC
Virtual Network Computing (remote desktop)
TCP No
6379Redis
Redis
TCP No
8080HTTP alternate
Alternate HTTP (proxies, Tomcat, Jenkins, dev servers)
TCP With care
8443HTTPS alternate
Alternate HTTPS (admin panels, Tomcat, UniFi, Plesk)
TCP With care
9000App port
PHP-FPM, Portainer, SonarQube, MinIO
TCP With care
25565Minecraft
Minecraft: Java Edition server
TCP Yes
27015Steam / Source
Steam game servers (Source engine: CS2, Garry's Mod, Rust)
TCP/UDP Yes
27017MongoDB
MongoDB
TCP No
32400Plex
Plex Media Server
TCP Yes
51820WireGuard
WireGuard VPN
UDP Yes

Port ranges

  • 0–1023, well-known: assigned by IANA to core protocols. On Linux and macOS, only root (or a process with CAP_NET_BIND_SERVICE) can listen on them.
  • 1024–49151, registered: assigned on request to applications (3306 MySQL, 3389 RDP, 25565 Minecraft).
  • 49152–65535, dynamic: never assigned; used for ephemeral client ports.

Assignments follow the IANA Service Name and Transport Protocol Port Number Registry; some entries (3000, 5000, 9000) are de-facto conventions rather than formal assignments, and are labelled as such on their pages.

Questions people ask

How many ports are there?
65,536 TCP ports and 65,536 UDP ports (0–65535) per IP address. IANA divides them into well-known (0–1023), registered (1024–49151) and dynamic/ephemeral (49152–65535) ranges.
What is the difference between TCP and UDP ports?
TCP ports carry connection-oriented traffic with a handshake, ordering and retransmission (web, SSH, mail). UDP ports carry connectionless datagrams (DNS queries, VoIP, games, WireGuard). TCP 53 and UDP 53 are separate ports that happen to share a number.
Which ports should never be open to the internet?
Database ports (1433, 3306, 5432, 6379, 27017), Windows file sharing and RPC (135, 139, 445), remote desktop (3389, 5900), Telnet (23) and SNMP (161). They are among the most scanned and exploited ports.
What are ephemeral ports?
The temporary source ports your OS picks for outgoing connections. Linux uses 32768–60999 by default; Windows and macOS use 49152–65535.