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

IPv6 connection woes #163

Open
phspies opened this issue Dec 8, 2015 · 3 comments
Open

IPv6 connection woes #163

phspies opened this issue Dec 8, 2015 · 3 comments

Comments

@phspies
Copy link

phspies commented Dec 8, 2015

I'm trying to use WinRM within a IPv6 environment, and from the internet posts it seems that IPv6 is almost never mentioned. What is the connection string for using a IPv6 address and is it even supported?

Connected successfully to [2607:f480:111:1318:5360:597:e103:4c37] at http://[2607:f480:111:1318:5360:597:e103:4c37]:5985/wsman.
WARNING: Failed to connect to [2607:f480:111:1318:5360:597:e103:4c37] at http://[2607:f480:111:1318:5360:597:e103:4c37]:5985/wsman.
error_message:        No valid WSMan endoint listening at http://[2607:f480:111:1318:5360:597:e103:4c37]:5985/wsman.
host:                 [2607:f480:111:1318:5360:597:e103:4c37]
response_status_code: 400
wsman_port:           5985
wsman_url:            http://[2607:f480:111:1318:5360:597:e103:4c37]:5985/wsman

Regards

@mwrock
Copy link
Member

mwrock commented Dec 8, 2015

One thing you might try checking is if your httpclient gem is at v 2.4.0 or later. IPv6 compatibility was added in that version. That was back in June 2014, but its possible you have an older version since WinRM is happy with 2.2 forward.

@phspies
Copy link
Author

phspies commented Dec 8, 2015

httpclient (2.7.0.1) is loaded. Do you think you need something special to make that work?

@sovapatr
Copy link

The issue for me was the httpclient not putting brackets around the Host header for the IPv6 request.
nahi/httpclient#388

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

3 participants