how to find your computer's public hostname code example Example: get hostname socket.gethostbyname(socket.gethostname())