python socket.listen(1) code example Example: socket hostname socket.gethostbyname(socket.gethostname())