find hostname wndows 10 cmd code example Example: get hostname socket.gethostbyname(socket.gethostname())