Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pywinrm does not seem to support access to ipv6 addresses? #356

Open
bestzed1 opened this issue Sep 16, 2022 · 1 comment
Open

pywinrm does not seem to support access to ipv6 addresses? #356

bestzed1 opened this issue Sep 16, 2022 · 1 comment

Comments

@bestzed1
Copy link

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'))

@Jaegermeiste
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants