# the connection attempt timed out

**URL:** <https://forum.ansible.com/t/the-connection-attempt-timed-out/32144>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [February 5, 2020, 10:57am UTC](https://forum.ansible.com/t/the-connection-attempt-timed-out/32144 "2020-02-05T10:57:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oxs](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@Oxs](https://forum.ansible.com/u/Oxs)\
**Post date:** [February 5, 2020, 10:57am UTC](https://forum.ansible.com/t/the-connection-attempt-timed-out/32144/1 "2020-02-05T10:57:08Z")

</div>

Dear guys,

I try to connect with winrm to a Windows server 2016: winrm is installed, port winrm is open and firewall down (windows)

Some output about this error?

ansible@host01:~/playbooks$ ansible all -i …/inventory\_winrm -m win\_ping -vvvv  
ansible 2.8.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/home/ansible/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
executable location = /bin/ansible  
python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]  
Using /etc/ansible/ansible.cfg as config file  
setting up inventory plugins  
host\_list declined parsing /home/ansible/inventory\_winrm as it did not pass it’s verify\_file() method  
script declined parsing /home/ansible/inventory\_winrm as it did not pass it’s verify\_file() method  
auto declined parsing /home/ansible/inventory\_winrm as it did not pass it’s verify\_file() method  
Parsed /home/ansible/inventory\_winrm inventory source with ini plugin  
Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/minimal.pyc  
META: ran handlers  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/windows/win\_ping.ps1  
Pipelining is enabled.  
\<172.24.0.22\> ESTABLISH WINRM CONNECTION FOR USER: LOCAL\_ANSIBLE\_SVC on PORT 5986 TO 172.24.0.22  
**172.24.0.22 | FAILED! =\> {**  
**“msg”: “the connection attempt timed out”**

ansible@host01:~/playbooks$ **telnet 172.24.0.22 5986**  
**Trying 172.24.0.22…**  
**Connected to 172.24.0.22.**  
**Escape character is ‘^]’.**

---

<div class="post-metadata">

**Author:** ![Oxs](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@Oxs](https://forum.ansible.com/u/Oxs)\
**Post date:** [February 5, 2020, 1:44pm UTC](https://forum.ansible.com/t/the-connection-attempt-timed-out/32144/2 "2020-02-05T13:44:08Z")

</div>

Hi haven’t mention.

Ansible server is in a LAN and the windows host in a DMZ
