how to get the hostname of a server code example Example: get hostname socket.gethostbyname(socket.gethostname())