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