I have a device that can be accessed over a local network in order to configure the device. One of the settings is to change the IP address of the local interface. The problem is that when I change the static IP I can no longer redirect the user to the new IP.
Is there some way around this?
Is there a way I can temporarily keep the old IP address and then redirect the user to the new one and release the old one?
I want to avoid the user from having to manually type in the new address in case they forget it or accidentally enter the wrong address.
Not sure what the smartest way to do this is.
For example now I am doing this
ioctl(args) //change ip of interface
redirect to new address //this doesn't work obviously