# AWX to Remote Server with NAT IP

**URL:** <https://forum.ansible.com/t/awx-to-remote-server-with-nat-ip/33535>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [July 31, 2020, 6:16am UTC](https://forum.ansible.com/t/awx-to-remote-server-with-nat-ip/33535 "2020-07-31T06:16:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aneesh](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Aneesh](https://forum.ansible.com/u/Aneesh)\
**Post date:** [July 31, 2020, 6:16am UTC](https://forum.ansible.com/t/awx-to-remote-server-with-nat-ip/33535/1 "2020-07-31T06:16:02Z")

</div>

Hi All

Looking for a solution for below scenario

1. AWX Server – Remote Server is connecting Via only natted IP and only AWX knows this IP , Remote Server is not Aware of this IP .

Ex : AWX Server IP – 10.9.50.5  
: Remote Server - Natted IP ( 10.10.98.126) , Local IP 10.0.252.71

while adding the Remote Server to AWX I Used Natted IP ( 10.10.98.126 - Only AWX knows this IP ).

In this case if i want to do any operation (Ex :remote Copy with Condition ) on the server where i need to compare the local IP wont work . Because AWX inventory IP is 10.10.98.126 and Remote Server IP is 10.0.252.71

Is there any solution for this ? Can we give multiple IP for one Host in AWX and Route Conditons

Thanks  
Aneesh

---

<div class="post-metadata">

**Author:** ![Nuno\_Jordao](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@Nuno\_Jordao](https://forum.ansible.com/u/Nuno_Jordao)\
**Post date:** [July 31, 2020, 1:58pm UTC](https://forum.ansible.com/t/awx-to-remote-server-with-nat-ip/33535/2 "2020-07-31T13:58:38Z")

</div>

Hello,

Maybe you could add a variable to the host, like “real\_ip: XX.YY.ZZ.WW” and use that when needed. To be more generic you can check in the playbook if the “real\_ip” is defined and execute accordingly.

Nuno Jordão
