# Changing http port for a host that ansible uses to connect to a host

**URL:** <https://forum.ansible.com/t/changing-http-port-for-a-host-that-ansible-uses-to-connect-to-a-host/28865>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [October 24, 2018, 6:23pm UTC](https://forum.ansible.com/t/changing-http-port-for-a-host-that-ansible-uses-to-connect-to-a-host/28865 "2018-10-24T18:23:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [October 24, 2018, 6:23pm UTC](https://forum.ansible.com/t/changing-http-port-for-a-host-that-ansible-uses-to-connect-to-a-host/28865/1 "2018-10-24T18:23:13Z")

</div>

You're mixing a few things up here.

1. Ansible doesn't have anything to do with 'http'. The only thing it  
uses is SSH, which runs op port 22 by default.  
2. If you want to run this on a different port, use the 'ansible\_port' option.  
3. 'ansible\_host' configures the \*host\* that ansible connects to.

Please read [https://docs.ansible.com/ansible/latest/user\_guide/intro\_inventory.html#working-with-inventory](https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#working-with-inventory)

Dick
