modify the ip address during running

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

modify the ip address during running

476 Views
ninesun
Contributor II

Can I modify the ip address when socket task is running. for example. I had used function ipcfg_bind_staticip to set ip address at first then i build the socket task. If i receive any modify ip command(etc from serial port or network), Can I modify the IP addres use the ipcfg_bind_staticip with new ip address? Can anyone give some suggestion? thanks

Labels (1)
0 Kudos
1 Reply

356 Views
ivadorazinova
NXP Employee
NXP Employee

Hello nine sun,

I apologize for my late response.

When you open socket on specific address and port, it´s clear that you cannot change it while it running.

First you must close the socket, configure new IP address and then open the socket.

Best Regards,

Iva