Generate random IPv4 addresses, private RFC 1918 ranges by default, or any valid public-shaped address. For testing and mock data.
| Input | Result |
|---|---|
| 5 addresses | private-range test data |
| loopback | 127.0.0.x for local testing |
| any | public-shaped addresses, see the honesty note |
No, 'any' mode produces validly-shaped numbers that may belong to a real server or router on the public internet. Never use random public IPs for anything except format testing. The default private mode is the safe choice for mock data.
RFC 1918 private addresses (10.x, 192.168.x, 172.16-31.x) are guaranteed not to route to anyone else's network, exactly what you want in test fixtures, firewall rules and lab setups.
Yes, 32-bit dotted-quad IPv4. IPv6 needs a different generator (its 128-bit addresses are written with hexadecimal colons).