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