Network ports provide logical endpoints for communication between applications and devices across TCP/IP networks. Operating from 0 to 65535, ports are divided into well-known (0-1023), registered (1024-49151), and dynamic/ephemeral (49152-65535) ranges, each serving distinct purposes in network architecture. Understanding port assignments, security implications, and service mappings is fundamental to network administration, security hardening, and troubleshooting — ports represent both entry points for legitimate services and potential attack vectors if misconfigured. Port numbers combine with IP addresses to form unique socket identifiers, enabling multiple concurrent network conversations on a single host, making them the foundation of modern networked applications from web browsers to microservices.
What This Cheat Sheet Covers
This topic spans 25 focused tables and 138 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
Table 1: Port Range Categories
The full 0-65535 range isn't a flat free-for-all — it's carved into three bands that signal who gets to use which numbers and why. Well-known ports are IANA-reserved and need root to bind, registered ports are claimed by specific applications but open to ordinary users, and the ephemeral range is the churning pool your OS hands out for outbound connections. Grasping these boundaries explains a lot of everyday behavior, like why a web server needs elevated privileges to sit on port 80 and what port 0 is quietly doing as a wildcard.
| Category | Example | Description |
|---|---|---|
| 01023 | • Reserved by IANA for system services and widely-used protocols like HTTP, SSH, DNS • require root/administrator privileges to bind on Unix-like systems • standardized across all platforms for consistent service discovery | |
| 102449151 | • Assigned by IANA for specific applications upon request (e.g., port 3306 for MySQL) • can be used by ordinary users without elevated privileges • provides predictable port discovery for common applications |