ToolsAgentsLibrary
  1. Library
  2. Ports
  3. Port Basics

Port Basics

What Is a Port? The Apartment Number Analogy

Your IP address gets packets to your computer. But which application should receive them? Ports are how your computer runs dozens of network conversations simultaneously without mixing them up.

How Ports Work with IP Addresses

IP addresses find computers. Ports find the services running on them. Together they create sockets—the addressing system that lets one machine do a thousand things at once.

The Port Number Range (0-65535)

A 1970s decision to use sixteen bits for port numbers created a permanent constraint on every networked device. Here's why exactly 65,536 ports exist, what the three ranges mean, and why some require root.

Well-Known Ports (0-1023)

The first 1024 ports are reserved for the Internet's essential services—HTTP, SSH, DNS, email. Here's why port 80 means web traffic everywhere on Earth, and what happens when you try to claim these ports for yourself.

Registered Ports (1024-49151)

The 48,127 ports between privileged services and temporary connections run on something stranger than enforcement: collective agreement. How MySQL, PostgreSQL, and Redis claimed their territory—and why one port number honors an Italian TV actress.

Ephemeral Ports (49152-65535)

Your computer assigns temporary port numbers for every outgoing connection—a return address for each conversation. Here's how ephemeral ports work and what happens when you run out.

Was this page helpful?

😔
🤨
😃

Network Tools

  • Port Checker
  • What Is My IP Address

Learn

  • Library
  • Contact

Company

  • About
  • The Grid

Safety

  • Terms of Service
  • Privacy Policy

English (United States)

© 2022–2026 Connected Systems, LLC. All rights reserved.