python socket send timeout code example Example: socket hostname socket.gethostbyname(socket.gethostname())