# windows host not reachable

**URL:** <https://forum.ansible.com/t/windows-host-not-reachable/27624>\
**Category:** Ansible Project\
**Tags:** windows, rhel\
**Created:** [May 25, 2018, 1:42am UTC](https://forum.ansible.com/t/windows-host-not-reachable/27624 "2018-05-25T01:42:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![doppalapudi\_saikumar](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@doppalapudi\_saikumar](https://forum.ansible.com/u/doppalapudi_saikumar)\
**Post date:** [May 25, 2018, 1:42am UTC](https://forum.ansible.com/t/windows-host-not-reachable/27624/1 "2018-05-25T01:42:26Z")

</div>

Hi,

I have installed ansible tower on rhel. I could ping my windows host from that server. But when i configured a job template it has error of connection timeout.

Error message:

“msg”: “plaintext: HTTPConnectionPool(host=‘110.x…119’, port=5985): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(\<requests.packages.urllib3.connection.HTTPConnection object at 0x7f31115d1810\>, ‘Connection to 110.144.x119 timed out. (connect timeout=30)’))”,  
“unreachable”: true,  
“changed”: false

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [May 25, 2018, 2:17am UTC](https://forum.ansible.com/t/windows-host-not-reachable/27624/2 "2018-05-25T02:17:32Z")

</div>

Have you enabled WinRM on the Windows server, it doesn’t seem like you have as there’s no response on the WinRM port.

---

<div class="post-metadata">

**Author:** ![doppalapudi\_saikumar](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@doppalapudi\_saikumar](https://forum.ansible.com/u/doppalapudi_saikumar)\
**Post date:** [May 25, 2018, 2:25am UTC](https://forum.ansible.com/t/windows-host-not-reachable/27624/3 "2018-05-25T02:25:39Z")

</div>

I enabled. I have even checked in services. its running.

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [May 25, 2018, 3:11am UTC](https://forum.ansible.com/t/windows-host-not-reachable/27624/4 "2018-05-25T03:11:52Z")

</div>

Having the service running may not be enough, have a look through [https://docs.ansible.com/ansible/devel/user\_guide/windows\_setup.html#winrm-setup](https://docs.ansible.com/ansible/devel/user_guide/windows_setup.html#winrm-setup) and verify a listener is configured on the port you specified. It also contains a few other troubleshooting tips.

Thanks

Jordan

---

<div class="post-metadata">

**Author:** ![doppalapudi\_saikumar](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@doppalapudi\_saikumar](https://forum.ansible.com/u/doppalapudi_saikumar)\
**Post date:** [May 25, 2018, 3:22am UTC](https://forum.ansible.com/t/windows-host-not-reachable/27624/5 "2018-05-25T03:22:37Z")

</div>

port 5985 for http is open. when i did telnet windowshost 5985 it says connected. but from ansible tower it says this error.

---

<div class="post-metadata">

**Author:** ![doppalapudi\_saikumar](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@doppalapudi\_saikumar](https://forum.ansible.com/u/doppalapudi_saikumar)\
**Post date:** [May 25, 2018, 2:44pm UTC](https://forum.ansible.com/t/windows-host-not-reachable/27624/6 "2018-05-25T14:44:53Z")

</div>

[![](https://lh3.googleusercontent.com/-IOLmJ2MQCSQ/WwghI6RvPCI/AAAAAAAABCQ/fMZ9CG8Dc7Yohj4_YoK_QVFCSlN2x7wkwCLcBGAs/s320/Capture.PNG)](https://lh3.googleusercontent.com/-IOLmJ2MQCSQ/WwghI6RvPCI/AAAAAAAABCQ/fMZ9CG8Dc7Yohj4_YoK_QVFCSlN2x7wkwCLcBGAs/s1600/Capture.PNG)

my ansible tower is not secured. is this causing connection error to windows host???

---

<div class="post-metadata">

**Author:** ![Tchia04](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Tchia04](https://forum.ansible.com/u/Tchia04)\
**Post date:** [May 29, 2018, 6:12pm UTC](https://forum.ansible.com/t/windows-host-not-reachable/27624/7 "2018-05-29T18:12:16Z")

</div>

Try clean up the existing WinRM listener using the following

winrm delete winrm/config/Listener?Address=_+Transport=HTTP  
winrm delete winrm/config/Listener?Address=_+Transport=HTTPS

Then run ConfigureRemotingForAnsible.ps1 again.
