how to figure out your internet hostname code example Example: get hostname socket.gethostbyname(socket.gethostname())