Introduction: The Apartment Building

An **IP Address** tells the internet which building you live in. But what if that building is a massive apartment complex with 65,535 different units? How does a letter find the right person? The answer is TCP Ports. Every IP address has thousands of these 'virtual doors' that allow different programs to receive data at the same time.

In this guide, we'll explain how your computer uses ports to keep your web browsing, email, and gaming traffic from getting mixed up.

What Is a Port?

A port is a 16-bit number (from 0 to 65535) assigned to a specific network service. When a packet arrives at your IP address, your computer looks at the port number to decide which application should open the envelope. Without ports, you could only do one thing on the internet at a time!

The Core Ports

  • Port 80: The front door for standard websites (HTTP).
  • Port 443: The high-security entrance for encrypted websites (HTTPS).
  • Port 25: The loading dock for outgoing emails (SMTP).

Socket: The Perfect Pair

In networking, the combination of an IP address and a Port number is called a **Socket** (e.g., 192.168.1.1:80). This socket identifies exactly one specific service on one specific machine in the entire world.

Conclusion

Ports are the secret to multitasking on the web. They ensure that your cat videos stay in your browser and your emails stay in your inbox. Check your open ports here.