# Can I Change Ip Address Dynamically?

**URL:** <https://forums.freertos.org/t/can-i-change-ip-address-dynamically/18369>\
**Category:** Libraries\
**Created:** [October 20, 2023, 12:42pm UTC](https://forums.freertos.org/t/can-i-change-ip-address-dynamically/18369 "2023-10-20T12:42:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emrecntz](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/emrecntz/32/3066_2.png) [@emrecntz](https://forums.freertos.org/u/emrecntz)\
**Post date:** [October 20, 2023, 12:42pm UTC](https://forums.freertos.org/t/can-i-change-ip-address-dynamically/18369/1 "2023-10-20T12:42:25Z")

</div>

Hi,

I am working on a project that uses TCP 4.0.0 Zynq port. I have one network interface and two endpoints. After called FreeRTOS\_IPInit\_Multi() function, is there any way to change ip address of one of the endpoints?

Thanks

---

<div class="post-metadata">

**Author:** ![ActoryOu](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/actoryou/32/2880_2.png) [@ActoryOu](https://forums.freertos.org/u/ActoryOu)\
**Post date:** [October 21, 2023, 12:51pm UTC](https://forums.freertos.org/t/can-i-change-ip-address-dynamically/18369/2 "2023-10-21T12:51:55Z")

</div>

Hi @emrecntz,  
If you’re using DHCP/DHCPv6, the IP address is dynamically changed by DHCP communication with server. But if you’re using static configuration, you can refer to [this post](https://forums.freertos.org/t/freertos-tcp-4-0-0-what-is-the-proper-way-to-change-end-point-settings/18148/7). In short, there is no existing API for users to change static setting dynamically. But users can implement one by themselves.

Note that you need to call `FreeRTOS_NetworkDown()` to re-init the whole stack.

THanks.

---

<div class="post-metadata">

**Author:** ![emrecntz](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/emrecntz/32/3066_2.png) [@emrecntz](https://forums.freertos.org/u/emrecntz)\
**Post date:** [October 23, 2023, 7:46am UTC](https://forums.freertos.org/t/can-i-change-ip-address-dynamically/18369/3 "2023-10-23T07:46:56Z")

</div>

Thank you for helping @ActoryOu

---

<div class="post-metadata">

**Author:** ![kevin498](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kevin498](https://forums.freertos.org/u/kevin498)\
**Post date:** [March 22, 2024, 5:01am UTC](https://forums.freertos.org/t/can-i-change-ip-address-dynamically/18369/4 "2024-03-22T05:01:46Z")

</div>

> [@emrecntz](#):
>
> Hi,
> 
> I am working on a project that uses TCP 4.0.0 Zynq port. I have one network interface and two endpoints. After called FreeRTOS\_IPInit\_Multi() function, is there any way to change ip address of one of the endpoints?

Thanks for this solution.
