Features

Free Random IP Generator

Generate random IP addresses, to be used in your tests, for free with this online IP generator. These are valid IPs that can be used for testing your website or mobile app.

Random IP Generator
Copy code
Ad

What is a Random IP Generator?

A random IP address generator will create valid looking, random IP addresses, which can be used in your tests (automated or manual). If your test, or the website/mobile app you are testing, requires a valid IP address, you can use this tool to create dummy IPs.

Why do I need an IP Address Generator?

The generator will generate a valid, public IP address. This IP address can be used in your automated or manual tests when required by the website or mobile app you are testing.

What is the difference between an IPv4 and IPv6 address?

The IPv4 address is the original format of an IP address and is still used by over 90% of all internet appliances. It consists of a 32-bit binary number, separated by dots.

An IPv6 address is an 128-bit binary number, separated by colons. As it is 128 bit, the number of possibilities is exponentially bigger than the original IPv4 address.

How do I generate an IP address in my test cases?

This depends on the programming language you are using. An example on how to do this with Javascript or NodeJS can be found below.

Copy code
const randomIp = Array(4).fill(0).map((_, i) => Math.floor(Math.random() * 255) + (i === 0 ? 1 : 0)).join('.');