Skip to content

Common network ports

Which port each common service uses: web, mail, file transfer, remote access and databases.

6
Sections
1 min
Read time

Web

PortProtocolService
80TCPHTTP
443TCP (and UDP for HTTP/3)HTTPS

Email

PortServiceNote
25SMTP between mail serversOften blocked for outgoing mail on cloud networks
587SMTP submission (STARTTLS)What mail apps use to send
465SMTP submission (TLS)Also used by mail apps
993IMAP over TLSReading mail
995POP3 over TLSDownloading mail

Remote access and files

PortService
22SSH and SFTP
21FTP (unencrypted; prefer SFTP)
3389Windows Remote Desktop (RDP)

Control panels

PortService
2083 / 2087cPanel / WHM over HTTPS
8443Plesk over HTTPS

Databases and caches

PortService
3306MySQL / MariaDB
5432PostgreSQL
1433Microsoft SQL Server
27017MongoDB
6379Redis

Infrastructure

PortService
53DNS (UDP and TCP)
123NTP time sync (UDP)
51820WireGuard VPN (UDP, default)
1194OpenVPN (default)

Database and cache ports should almost never be open to the whole internet. Restrict them to localhost, a private network or specific IP addresses.