# Change ActiveGate IP address in custom properties file of OneAgent

**URL:** <https://community.dynatrace.com/t/change-activegate-ip-address-in-custom-properties-file-of-oneagent/45296>\
**Category:** Open Q&A\
**Tags:** installation, activegate, oneagent\
**Created:** [April 25, 2024, 8:51am UTC](https://community.dynatrace.com/t/change-activegate-ip-address-in-custom-properties-file-of-oneagent/45296 "2024-04-25T08:51:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abidyaseen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/abidyaseen/32/19726_2.png) [@Abidyaseen](https://community.dynatrace.com/u/Abidyaseen)\
**Post date:** [April 25, 2024, 8:51am UTC](https://community.dynatrace.com/t/change-activegate-ip-address-in-custom-properties-file-of-oneagent/45296/1 "2024-04-25T08:51:46Z")

</div>

How to hange ActiveGate IP address in custom properties file of OneAgent?

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [April 25, 2024, 9:03am UTC](https://community.dynatrace.com/t/change-activegate-ip-address-in-custom-properties-file-of-oneagent/45296/2 "2024-04-25T09:03:09Z")

</div>

What You mean?

the ActiveGate where the OA is pointing?

If you have multiple AG and you want to use specific one for specific OA,

- User the Network Zones.

---

<div class="post-metadata">

**Author:** ![Esam\_Eid](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/esam_eid/32/167_2.png) [@Esam\_Eid](https://community.dynatrace.com/u/Esam_Eid)\
**Post date:** [April 25, 2024, 9:53am UTC](https://community.dynatrace.com/t/change-activegate-ip-address-in-custom-properties-file-of-oneagent/45296/3 "2024-04-25T09:53:12Z")

</div>

Hi&nbsp;[@Abidyaseen](https://community.dynatrace.com/user/63100)&nbsp;,

you can use oneagentctl commands to change the Activegate IP

Use the&nbsp;--set-server&nbsp;parameter to set a OneAgent communication endpoint. Use the IP address or name. Depending on your deployment, it can be a Dynatrace Server, Dynatrace Managed Cluster, or ActiveGate.

Run the following command to adjust OneAgent connection settings:

- **Linux** &nbsp;or&nbsp; **AIX** :  
./oneagentctl --set-server=[https://my-server.com:443](https://my-server.com:443) --set-tenant=abc123456 --set-tenant-token=abcdefg123456790 --set-proxy=my-proxy.com
- **Windows** :  
.\oneagentctl.exe --set-server=[https://my-server.com:443](https://my-server.com:443) --set-tenant=abc123456 --set-tenant-token=abcdefg123456790 --set-proxy=my-proxy.com

To define multiple endpoints, separate them by semicolon and add the quotes. For example,&nbsp;--set-server=“[https://server1](https://server1);[https://server2](https://server2)”

after that you have to restart the agent

> **[OneAgent configuration via command-line interface](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/oneagent-configuration-via-command-line-interface)**
>
> Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent.

Hope this helps

BR

Esam Eid
