how to et server name o a ip code example Example: get hostname socket.gethostbyname(socket.gethostname())