how to find hostname of a laptop code example Example: get hostname socket.gethostbyname(socket.gethostname())