# Bidirectional or Unidirectional Connectivity for Ports 22 and 5985 in Ansible AWX?

**URL:** <https://forum.ansible.com/t/bidirectional-or-unidirectional-connectivity-for-ports-22-and-5985-in-ansible-awx/6607>\
**Category:** Get Help\
**Tags:** awx, ansible-core\
**Created:** [June 17, 2024, 4:36pm UTC](https://forum.ansible.com/t/bidirectional-or-unidirectional-connectivity-for-ports-22-and-5985-in-ansible-awx/6607 "2024-06-17T16:36:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manish\_singh](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/manish_singh/32/2761_2.png) [@manish\_singh](https://forum.ansible.com/u/manish_singh)\
**Post date:** [June 17, 2024, 4:36pm UTC](https://forum.ansible.com/t/bidirectional-or-unidirectional-connectivity-for-ports-22-and-5985-in-ansible-awx/6607/1 "2024-06-17T16:36:34Z")

</div>

Hi Ansible community,

I’m working with Ansible AWX, and I need to understand the connectivity requirements for ports 22 and 5985. Specifically, I want to know if these ports need to be enabled bidirectionally (both from worker nodes to endpoints and vice versa) or if unidirectional connectivity is sufficient.

Could someone please clarify this for me? Any insights or best practices would be greatly appreciated!

Thanks in advance!

Regards,  
Manish Singh

---

<div class="post-metadata">

**Author:** ![mikemorency](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mikemorency/32/2672_2.png) [@mikemorency](https://forum.ansible.com/u/mikemorency)\
**Post date:** [July 1, 2024, 7:06pm UTC](https://forum.ansible.com/t/bidirectional-or-unidirectional-connectivity-for-ports-22-and-5985-in-ansible-awx/6607/2 "2024-07-01T19:06:38Z")

</div>

Ansible works by using a control host to connect to the remote host, as opposed to other things (like puppet) which use agents on the remote host to connect back to the control host.

The connection is unidirectional. control host → remote host. So your control host needs to allow 22 or 5985 outbound and the remote host needs to allow 22 or 5985 inbound (at least from the control host)

Port 22 is for SSH connections. Port 5985 is for unecrypted WinRM (windows). Port 5986 is for encrypted WinRM. All of these are configurable if needed

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 31, 2024, 7:06pm UTC](https://forum.ansible.com/t/bidirectional-or-unidirectional-connectivity-for-ports-22-and-5985-in-ansible-awx/6607/3 "2024-07-31T19:06:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
