# FreeRTOS+TCP restart with new static ip ...

**URL:** <https://forums.freertos.org/t/freertos-tcp-restart-with-new-static-ip/6706>\
**Category:** Kernel\
**Created:** [July 28, 2017, 3:44pm UTC](https://forums.freertos.org/t/freertos-tcp-restart-with-new-static-ip/6706 "2017-07-28T15:44:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [July 28, 2017, 3:44pm UTC](https://forums.freertos.org/t/freertos-tcp-restart-with-new-static-ip/6706/1 "2017-07-28T15:44:08Z")

</div>

**[debugasm](https://sourceforge.net/u/debugasm/)** wrote on [Friday, July 28, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/db8fd5da/#f6e7):

Hi,

Today I finally got to try FreeRTOS+TCP using MicroBlaze and EthernetLite on  
Spartan6 FPGA.

I am very happy because in my next project I want to use FreeRTOS+TCP instead  
of lwip.

I still have to do many tests and write a lot of code but I think that  
FreeRTOS+TCP will give me a lot of satisfaction, thanks to the excellent work  
that has been done up to here from the “Real Time Engineers ltd”.

In my appliances I always use a static IP address, I do not use DHCP (which I  
have disabled) and for now I set the IP address hardcoded.

I have a problem though: How to change IP address when started FreeRTOS+TCP ?

I did not find any APIs for that, was not considered ?

I have found this :

```auto
FreeRTOS_SetIPAddress
FreeRTOS_SetNetmask
FreeRTOS_SetGatewayAddress

```

But missing :

`FreeRTOS_SetDNS`

But these routines do not seem appropriate to what I see in the code.

How do I change my network configuration after I have started FreeRTOS+TCP with  
another manually assigned IP address ?

Suggestion:

While porting the EthernetLite driver I noticed that the call to:

`BaseType_t xNetworkInterfaceInitialise( void )`

does not pass the MAC address to be set to the EMAC interface, but it is  
necessary to refer to an external variable:

```auto
/* ucMACAddress as it appears in main.c */
extern const uint8_t ucMACAddress[6];

```

Would not it be better to pass the MAC value as a parameter ?

There is an upgrade after “160919\_FreeRTOS\_Labs.zip” ?

Thanks so much.

debugasm

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 10, 2018, 7:58am UTC](https://forums.freertos.org/t/freertos-tcp-restart-with-new-static-ip/6706/2 "2018-11-10T07:58:30Z")

</div>

**[andrewfrazer](https://sourceforge.net/u/andrewfrazer/)** wrote on [Saturday, November 10, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/db8fd5da/#e321):

Hi debugasm, did you get FreeRTOS Plus TCP working on microblaze?
