# Failed to connect to windows server behind a bastion host from AWX

**URL:** <https://forum.ansible.com/t/failed-to-connect-to-windows-server-behind-a-bastion-host-from-awx/36701>\
**Category:** AWX Project\
**Tags:** windows, awx\
**Created:** [June 8, 2022, 10:30am UTC](https://forum.ansible.com/t/failed-to-connect-to-windows-server-behind-a-bastion-host-from-awx/36701 "2022-06-08T10:30:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_Kumaraswamy](https://avatars.discourse-cdn.com/v4/letter/k/3be4f8/32.png) [@Karthik\_Kumaraswamy](https://forum.ansible.com/u/Karthik_Kumaraswamy)\
**Post date:** [June 8, 2022, 10:30am UTC](https://forum.ansible.com/t/failed-to-connect-to-windows-server-behind-a-bastion-host-from-awx/36701/1 "2022-06-08T10:30:59Z")

</div>

Hi All,

I’m receiving below error while trying to establish connectivity with a windows host which is behind our bastion host

Variables passed are as below:

ansible\_connection: psrp  
ansible\_psrp\_protocol: http  
ansible\_psrp\_proxy: ‘socks5h://13.212.12.113:22’

Proxy Server: 13.212.12.113

Windows host: 10.116.3.69

“msg”: “Failed to connect to the host via PSRP: SOCKSHTTPConnectionPool(host=‘10.116.3.69’, port=5985): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(\<urllib3.contrib.socks.SOCKSConnection object at 0x7f714c301910\>, ‘Connection to 10.116.3.69 timed out. (connect timeout=30)’))”,

48  
“unreachable”: true

---

<div class="post-metadata">

**Author:** ![Karthik\_Kumaraswamy](https://avatars.discourse-cdn.com/v4/letter/k/3be4f8/32.png) [@Karthik\_Kumaraswamy](https://forum.ansible.com/u/Karthik_Kumaraswamy)\
**Post date:** [June 10, 2022, 4:49am UTC](https://forum.ansible.com/t/failed-to-connect-to-windows-server-behind-a-bastion-host-from-awx/36701/2 "2022-06-10T04:49:35Z")

</div>

Dear All,

Can someone assist me on this please ?

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [June 10, 2022, 9:45am UTC](https://forum.ansible.com/t/failed-to-connect-to-windows-server-behind-a-bastion-host-from-awx/36701/3 "2022-06-10T09:45:50Z")

</div>

Have you tried this outside of AWX with ansible-playbook?  
Are you getting any messages in the logs in your bastion host that indicate any kind of issue?

-The AWX Team
