September 7, 2026 · Yunus Emre Vurgun

Common Network Ports Reference

networking · reference · devops · cheat-sheet

Eleven ports cover the services developers touch daily: web, SSH, DNS, mail, and the four database defaults. Memorize the table and firewall rules, connection strings, and "connection refused" errors get much easier to read.

The ports

PortProtocolServiceWhat it is
21TCPFTPFile Transfer Protocol — unencrypted file transfers.
22TCPSSHSecure Shell — encrypted remote access.
25TCPSMTPSimple Mail Transfer Protocol — email routing.
53TCP/UDPDNSDomain Name System — hostname to IP resolution.
80TCPHTTPHypertext Transfer Protocol — unencrypted web traffic.
443TCPHTTPSHTTP over TLS — encrypted web traffic.
3306TCPMySQLMySQL database server — default port.
5432TCPPostgreSQLPostgreSQL database server — default port.
6379TCPRedisRedis in-memory data store — default port.
8080TCPHTTP AltCommon alternate port for HTTP proxies and dev servers.
27017TCPMongoDBMongoDB default port for standalone and replica set nodes.

Reading "connection refused"

That error with a port number tells you exactly which row of this table to check: nothing is listening there. The usual causes in order are the service isn't running, it is bound to localhost instead of the external interface, or a firewall drops the packets. Match the port to the service first — 5432 means Postgres, 6379 means Redis — and you start debugging the right process instead of the network in general.

Fetch it as data

This table is the Network Ports Reference dataset:

curl "https://yjtoon.com/api/dataset/network-ports-reference?format=toon"

Go deeper with TCP/IP Protocol Suite, OSI Model Layers, and DNS Fundamentals.