# Windows Host Unreachable

**URL:** <https://forum.ansible.com/t/windows-host-unreachable/32548>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [March 27, 2020, 12:39pm UTC](https://forum.ansible.com/t/windows-host-unreachable/32548 "2020-03-27T12:39:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco\_Passarinho](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@Marco\_Passarinho](https://forum.ansible.com/u/Marco_Passarinho)\
**Post date:** [March 27, 2020, 12:39pm UTC](https://forum.ansible.com/t/windows-host-unreachable/32548/1 "2020-03-27T12:39:17Z")

</div>

Hello,

I’m getting the following error when trying to win\_ping my windows host:

Command:  
ansible VMs -m win\_ping

Response:  
xx.xx.xx.xxx | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “basic: HTTPSConnectionPool(host=‘xx.xx.xx.xxx’, port=5986): Max retries exceeded with url: /wsman (Caused by ProxyError(‘Cannot connect to proxy.’, error(‘Tunnel connection failed: 403 Forbidden’,)))”,  
“unreachable”: true  
}

Can please someone help me understand where might the problem be?

Followed all steps for both Control node (Redhat server 7) and Windows 7 controlled node.

You help would be deeply appreciated.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [March 28, 2020, 8:50pm UTC](https://forum.ansible.com/t/windows-host-unreachable/32548/2 "2020-03-28T20:50:49Z")

</div>

From the error message it looks like there is a network proxy being used.  
If possible I would try and set things up to not use a proxy to start with so you can rule out whether the proxy itself is breaking the communication.  
You might wish to try the psrp connection plugin as that has options to avoid proxy.  
[https://docs.ansible.com/ansible/latest/plugins/connection/psrp.html](https://docs.ansible.com/ansible/latest/plugins/connection/psrp.html)

A couple of useful pages if you need to get into debugging winrm connection  
[https://www.hurryupandwait.io/blog/understanding-and-troubleshooting-winrm-connection-and-authentication-a-thrill-seekers-guide-to-adventure](https://www.hurryupandwait.io/blog/understanding-and-troubleshooting-winrm-connection-and-authentication-a-thrill-seekers-guide-to-adventure)  
[https://www.bloggingforlogging.com/2018/10/14/windows-host-through-ssh-bastion-on-ansible/](https://www.bloggingforlogging.com/2018/10/14/windows-host-through-ssh-bastion-on-ansible/)  
Also the trouble shooting guide here is helpful too:  
[https://docs.ansible.com/ansible/latest/user\_guide/windows\_setup.html#common-winrm-issues](https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#common-winrm-issues)

Hope this helps,

Jon

---

<div class="post-metadata">

**Author:** ![Marco\_Passarinho](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@Marco\_Passarinho](https://forum.ansible.com/u/Marco_Passarinho)\
**Post date:** [March 29, 2020, 12:33am UTC](https://forum.ansible.com/t/windows-host-unreachable/32548/3 "2020-03-29T00:33:17Z")

</div>

Thank you so much for your precious help. I’ll give it a try with the links you referred.

I’ll let you know the result afterwards.

Kind regards,  
Marco
