Instance of socket has no getnohostname method code example Example: socket hostname socket.gethostbyname(socket.gethostname())