find local computer name from ip location code example Example: get hostname socket.gethostbyname(socket.gethostname())