Howtochangeip Script
Howtochangeip Script
Developed this for my own use to avoid having to go into the router settings and click Disconnect - Connect to reset my IP.
This procedure may come in handy who need to renew IP of WAN because of banned from the site or other reasons
If you have XAMPP or just any form of Apache with PHP you can run this on a computer connected to your WGR614v9 in any
way (wired or wireless) run it through the browser and it will reset your IP address, just as if you entered the setup, went
into stats, clicked info, clicked disconnect, then connect.
To use look for admin:secret change this to your own username/password credentials into the router setup and just access
it from your browser (e.g. http://localhost/ip.php. )
----------code---------------
<?php
// Information //
// Change IP Address Script by Elad Nava
// Developed for Netgear WGR614v9
// http://eladnava.com
// Usage //
// Access from browser e.g. http://localhost/ip.php
// Must be run on a computer connected to WGR614v9
// Change $ip to gateway if necessary
$cleanPost = array();
$k = urlencode( $k );
$v = stripslashes( $v );
$v = urlencode( $v );
$cleanPost[] = "{$k}={$v}";
}
if ( ! $open )
{
echo( 'There was a problem connecting to the source.' );
die();
}
fclose( $open );
}
?>