Reference

Common ports.

The port numbers worth knowing — web, mail, remote access, databases and dev servers.

Tap any row to copy the value in the first column.

Web & email

PortServiceProtoUsed for
80HTTPTCPUnencrypted web
443HTTPSTCPEncrypted web (TLS)
8080HTTP-altTCPProxies and dev web
25SMTPTCPMail relay between servers
587SMTPTCPMail submission (STARTTLS)
465SMTPSTCPMail submission (SSL)
143IMAPTCPMail retrieval
993IMAPSTCPIMAP over SSL
110POP3TCPMail retrieval (older)
995POP3STCPPOP3 over SSL

Remote access & transfer

PortServiceProtoUsed for
22SSHTCPSecure shell and SFTP
21FTPTCPFile transfer (control)
23TelnetTCPUnencrypted remote shell
3389RDPTCPWindows Remote Desktop
5900VNCTCPRemote desktop

DNS, time & directory

PortServiceProtoUsed for
53DNSUDP/TCPDomain name lookups
123NTPUDPTime synchronisation
67DHCPUDPIP assignment (server)
389LDAPTCPDirectory services
636LDAPSTCPLDAP over SSL

Databases & caches

PortServiceProtoUsed for
3306MySQLTCPMySQL / MariaDB
5432PostgreSQLTCPPostgres
6379RedisTCPRedis cache / store
27017MongoDBTCPMongoDB
1433MS SQLTCPSQL Server
11211MemcachedTCPMemcached

Dev & app servers

PortServiceProtoUsed for
3000Dev serverTCPNode / React dev
5173ViteTCPVite dev server
8000Dev serverTCPDjango / Python dev
5000Dev serverTCPFlask / .NET dev

How ports work

A port number tells the operating system which program a network connection belongs to: an IP address gets you to the machine, and the port gets you to the right service on it. Ports 0–1023 are the well-known ports reserved for standard services (HTTP on 80, HTTPS on 443, SSH on 22), 1024–49151 are registered ports for specific applications, and the rest are ephemeral ports the OS hands out to outgoing connections. The two you'll touch most are 443 for HTTPS and 22 for SSH; the database and dev-server ports above are the ones that come up when something local won't connect. A blocked or wrong port is a common cause of "connection refused", so it's worth confirming the service is actually listening where you expect. For working over SSH, see the SSH commands.

FAQ

What port does HTTPS use?
443 by default. Plain HTTP uses 80. When a URL has no port, browsers assume 443 for https:// and 80 for http://.
What's the difference between TCP and UDP ports?
TCP is connection-based and reliable (used by web, SSH, databases); UDP is connectionless and faster but best-effort (used by DNS, NTP, streaming). The same number can be a different service on TCP vs UDP.

More references