Page 392 - Beginning Programming with Pyth - John Paul Mueller
P. 392
FIGURE 17-1: The localhost address actually corresponds to your machine.
FIGURE 17-2: The addresses that you use to send email are unique across the Internet.
Port
A port is a specific entryway for a server location. The host address specifies the location, but the port defines where to get in. Even if you don’t specify a port every time you use a host address, the port is implied. Access is always granted using a combination of the host address and the port. The following steps help illustrate how ports work with the host address to provide server access:
Type import socket and press Enter.
1.