to change an IP , we do this in configuration file with root acces .
the web server read code to give a response to another computer .
in any case the web server can modify config files ! and it is a very good thing !
so changing ip within a web page is impossible