- case "RANDOM": // Pseudo-random IP number
- $remoteAddr = mt_rand(1,254).".".mt_rand(0,254).".".mt_rand(0,254).".".mt_rand(1,254);
+ case 'ZERO': // All four numbers zero
+ $remoteAddr = '0.0.0.0';
+ break;
+
+ case 'RANDOM': // Generate random ip
+ $remoteAddr = mt_rand(1, 254) . '.' . mt_rand(0, 254) . '.'.mt_rand(0, 254) . '.' . mt_rand(1, 254);