Changing the static IP in a running system is a two-step process:
Setup the registry to contain the new static IP address
If you want to make this setting permanent through a reboot cycle, you need to save the registry.
To apply the new settings without a reboot, you need to rebind the network adapter.
Configuring the IP
Using RegOpenKeyEx() and RegSetValueEx(), modify the following registry settings. Of course the actual values are only examples and need to be adjusted to your needs:
Hi,
I use this method on WEC2013 (IMX6DL), change registry values and programmably rebind adapter. Nothing happened, but return code is 0. When I reset device, adapter is not working. I must reset device once again and then adapter works correctly with new values. Same with command ndisconfig. Any idea?