# connecting to windows machine from linux through Ansible and getting timedout exception.

**URL:** <https://forum.ansible.com/t/connecting-to-windows-machine-from-linux-through-ansible-and-getting-timedout-exception/24672>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 7, 2017, 5:28pm UTC](https://forum.ansible.com/t/connecting-to-windows-machine-from-linux-through-ansible-and-getting-timedout-exception/24672 "2017-06-07T17:28:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balaji\_Chowdary](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@Balaji\_Chowdary](https://forum.ansible.com/u/Balaji_Chowdary)\
**Post date:** [June 7, 2017, 5:28pm UTC](https://forum.ansible.com/t/connecting-to-windows-machine-from-linux-through-ansible-and-getting-timedout-exception/24672/1 "2017-06-07T17:28:52Z")

</div>

getting a connection timeout, implying the host wasn’t reachable

can someone help! working with Ansible and windows environment.

---

<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:** [June 7, 2017, 7:37pm UTC](https://forum.ansible.com/t/connecting-to-windows-machine-from-linux-through-ansible-and-getting-timedout-exception/24672/2 "2017-06-07T19:37:49Z")

</div>

Lots of possible causes for this.  
Can you connect via remote desktop to the host?  
Did you run the

```auto
 ConfigureRemotingForAnsible.ps1

```

powershell script on the windows host?

Check you have a route to the windows host from your ansible controller. (ping, traceroute).  
Check you can resolve the hostname of windows hosts from ansible controller too.

Also make sure you have configured your inventory/ group\_vars for your windows hosts: [http://docs.ansible.com/ansible/intro\_windows.html#inventory](http://docs.ansible.com/ansible/intro_windows.html#inventory)

Hope the above helps,

Jon
