Well, what you can do, instead of really checking the IP, do something like this:
$ip = '1337.1337.1337.1337';
Instead:
$ip = $_SERVER['REMOTE_ADDR']
And then keep doing your validation IP code.
So, when you're done, you can make your $ ip variable code like this:
//$ip = '1337.1337.1337.1337';
$ip = $_SERVER['REMOTE_ADDR']
, " "
EDIT:
IP:
$ips = Array('192.168.1.220', '120.843.592.86', '256.865.463.563');
$ip = $ips[rand(1,count($ips)-1)];