0PricingLogin
Network+ Academy · Lesson

What Port Numbers Are For

Learn how ports direct traffic to the right service on a host.

One Host, Many Services

A single device often runs several network services at once — a web server, a mail server, and a file share. Port numbers let one IP address host many services by giving each a separate doorway.

The IP address gets the packet to the right host; the port number gets it to the right application on that host.

Sockets: IP Plus Port

Combine an IP address with a port number and you get a socket, the unique endpoint of a connection. For example, 192.168.1.10:443 is a socket for HTTPS on that host.

A connection is identified by the pair of sockets — source and destination — which is how a host keeps thousands of simultaneous conversations separate.

192.168.1.10:443  <- IP : port = socket

All lessons in this course

  1. TCP vs UDP at a Glance
  2. What Port Numbers Are For
  3. Web and File Transfer Protocols
  4. Remote Access and Mail Protocols
← Back to Network+ Academy