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 = socketAll lessons in this course
- TCP vs UDP at a Glance
- What Port Numbers Are For
- Web and File Transfer Protocols
- Remote Access and Mail Protocols