Search Authority

Common Ports and Protocols: The Ultimate Quick Reference Guide

Network communication relies on common ports and protocols to direct traffic reliably between devices. Understanding which ports map to which protocols helps teams secure servic...

Mara Ellison
Common Ports and Protocols: The Ultimate Quick Reference Guide

Network communication relies on common ports and protocols to direct traffic reliably between devices. Understanding which ports map to which protocols helps teams secure services and troubleshoot connectivity issues.

This guide explains the fundamentals with a reference table, key protocol categories, and practical guidance for everyday operations.

Port Number Protocol Transport Common Use Security Notes
20 FTP TCP FTP data transfer Unencrypted; prefer SFTP or FTPS
22 SSH TCP Secure remote access Use key-based auth and allowlist source IPs
53 DNS UDP/TCP Domain name resolution Restrict zone transfers, consider DNS over TLS
80 HTTP TCP Unencrypted web traffic Redirect to HTTPS, enforce HSTS
443 HTTPS TCP Encrypted web traffic Use strong cipher suites and valid certificates
123 NTP UDP Time synchronization Monitor for amplification risks, use authenticated NTP where possible
25 SMTP TCP Email transmission Require authentication, enforce TLS to prevent relay
143 IMAP TCP Email retrieval Use SSL/TLS, limit idle connections

Transport Layer Protocols and Port Binding

At the transport layer, protocols define how common ports are tracked and multiplexed across network interfaces. TCP ensures ordered, reliable delivery, while UDP offers low-latency, best-effort transmission.

Operating systems bind services to specific port numbers, and firewalls then filter based on the combination of address, port, and protocol. Misconfigured bindings can lead to service outages or unauthorized exposure.

Domain Name System Operations

DNS translates human-friendly names into network addresses, using port 53 for both queries and zone transfers. Understanding this flow is essential for performance tuning and security hardening.

DNS Query Flow

Recursive resolvers query authoritative nameservers over UDP, falling back to TCP when response data size exceeds limits. DNSSEC adds validation but increases payload size, making TCP necessary in some cases.

Secure Remote Access Considerations

SSH on port 22 is the de facto standard for encrypted remote administration. Key management, allowlisting, and logging are critical controls for reducing the attack surface.

Tunneling additional protocols over SSH can bypass network controls, so monitoring and protocol-aware inspection help maintain policy compliance.

Application Layer Protocols and Service Ports

Web, mail, and collaboration services rely on well-known ports and application layer protocols to exchange data. Encryption standards such as TLS influence which ports are preferred for client-facing interfaces.

Web and Email Service Ports

Port 80 handles unencrypted HTTP, while 443 serves HTTPS with strong cipher suites. Email traffic uses 25 for submission and relay, 587 with enforced TLS for authenticated submission, and 143 with STARTTLS for encrypted IMAP.

Operational Best Practices for Ports and Protocols

  • Document all exposed ports and associated protocols in an inventory.
  • Apply least-privilege firewall rules and review them regularly.
  • Prefer encrypted protocols such as HTTPS, SFTP, and SMTP with TLS.
  • Monitor for unexpected traffic on well-known ports using netflow or IDS.
  • Plan patching and configuration changes to minimize service disruption.

FAQ

Reader questions

Which ports should I explicitly allow on the firewall for secure remote access? Allow TCP 22 from specific admin IP ranges only, and avoid broad rules that expose the service to the entire internet. Why do some protocols use both TCP and UDP on the same port number? Different protocols use each transport based on requirements; for example, DNS uses UDP for simple queries and TCP for zone transfers or large responses, both on port 53. Can I run multiple encrypted services on port 443 without a load balancer?

You can host multiple virtual hosts on one IP and port using Server Name Indication (SNI), but distinct services such as HTTPS and TLS-based SMTP typically require different port numbers.

What should I do if a service fails to bind to a common port like 80 or 443?

Check for conflicting processes, verify socket permissions, and ensure no other service is already listening on the port before adjusting configurations or using port forwarding.

Related Reading

More pages in this topic cluster.

Who Designed the Nike Logo? The Story Behind the Swoosh

The Nike swoosh is one of the most recognizable symbols in the world, but few people know the story behind its creation. This piece explores who designed the Nike logo, why it h...

Read next
What is the World's Hottest Pepper? 🌶️🔥

When people ask about the world's hottest pepper, they usually mean the variety that currently holds the Guinness World Record and pushes the boundaries of capsaicin heat. Peppe...

Read next
Jon Huertas in This Is Us:角色, 出演时期与剧情影响详解

Jon Huertas 在《这就是我们》中饰演成年 Kevin Pearson,这一角色从2016年首播持续至2022年最终季,构成了剧集核心家庭叙事的重要组成部�...

Read next