Common Network Ports

Ports are numbered doors on a machine: the port in a connection decides which program answers. Firewalls and servers live and die by getting this list right.

The ports that matter

80HTTPWeb, unencrypted (redirects to HTTPS)
443HTTPSWeb, encrypted: the modern default
53DNSQueries (UDP) and zone transfers (TCP)
25SMTPServer-to-server mail relay
587SMTP submissionUser outgoing mail with STARTTLS
465SMTPSUser outgoing mail, implicit TLS
993IMAPSReceiving mail, encrypted
995POP3SReceiving mail (POP), encrypted
22SSHRemote server administration
3389RDPWindows remote desktop

Well-known vs ephemeral

  • 0-1023 are well-known ports reserved for core services; servers listen there.
  • 49152-65535 are ephemeral: your browser picks a random one as the source port for each connection.
  • Firewalls block inbound on ephemeral ranges by default; that is correct and normal.

Frequently asked questions

Which ports must be open for a website?+

Inbound 80 and 443 on the web server; everything else can stay closed. Management ports (22/3389) should be restricted to known IPs.

Does closing ports improve security?+

Reducing the exposed surface always helps, but hardening the services behind open ports matters more.

How do I check open ports?+

From outside: an online port scanner against your address. From the server: ss -tlnp or netstat -tlnp.

What is port forwarding?+

Telling a NAT router to send inbound traffic on one port to a specific internal device: the workaround for hosting behind NAT.

How do I verify my changes?+

Run the record lookup to confirm live values, then check the propagation checker for worldwide agreement. Both tools run in your browser.

What TTL should I use?+

3600 seconds is the default. Drop to 300 a day before changes so cutover is quick, then restore.

Last verified: 2026-10-28