# Fleet Policy different IP from the server

**URL:** <https://discuss.elastic.co/t/fleet-policy-different-ip-from-the-server/362595>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [July 5, 2024, 6:58am UTC](https://discuss.elastic.co/t/fleet-policy-different-ip-from-the-server/362595 "2024-07-05T06:58:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 5, 2024, 1:16pm UTC](https://discuss.elastic.co/t/fleet-policy-different-ip-from-the-server/362595/3 "2024-07-05T13:16:16Z")

</div>

> [@otortosa](#):
>
> How can I create an Agent policy that configures Public IP?

On the hosts urls of your fleet server host you will need to add the public endpoint so the agent will also try to checkin with fleet using the public endpoint.

So, you need to edit your Fleet Host server to add it.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/506d2aa4e9dd7590201ca7645cb1f77e15cca1ba.png)

You will probably need to reenroll your agent for it to get the new settings as it currently cannot communicate with the fleet server to get the updated policy.

---

_[View the full topic](https://discuss.elastic.co/t/fleet-policy-different-ip-from-the-server/362595)._
