pywinrm
pywinrm copied to clipboard
pywinrm does not seem to support access to ipv6 addresses?
When I use pywinrm to try to access an ipv6 address, I get the following error: HTTPConnectionPool(host='http', port=5985): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x2b23d61a6d90>: Failed to establish a new connection: [Errno -2] Name or service not known')) my code: win = winrm.Session('http://[ipv6_addr]:5985/wsman', auth=('Administrator', 'MyPassword'))
I have a similar issue with Ansible, but it may be due to running it on Ubuntu under WSL2, where ipv6 is broken for some reason.