8.1 Introducing the Socket
The fundamental building block of network programming in Python, and in many other languages, is the socket. The socket is what allows us to create connections between computers on a network. But before we can truly appreciate all that the socket can do for us, we need to start at the beginning. Let's start looking up the local computer's hostname and IP address.