Next-Gen App & Browser
Testing Cloud

Trusted by 1 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

Free Random IP Generator Online

An online IP generator that's free, easy to use, and doesn't have ads or popups. Try this simple yet convenient way to generate random IP addresses.

How many IPs?

What is a Random IP Generator?

A Random IP Generator is a tool that allows you to generate random IP addresses conveniently. This Random IP Generator by LambdaTest is free, easy to use, and doesn't have any ads or popups. Try now!

How does this Random IP Generator works?

This tool randomly generates IP addresses for your needs. It's written in JavaScript and entirely runs in the browser. First, it processes the input options.

The options allow you to enter startIp and endIp IP version 4 values, consisting 4 octets. The value for each Octet can range from 0-255. The below formula allows octects to be converted into a single decimal value:


The conversion formula can also be written as a<<24 + b<<16 + c<<8 + d. This results in generating integer values startIpDec and endIpDec.

Next, if the program detects that it is allowed to generate private IP addresses, then it creates a range of addresses between [startIpDec, endIpDec). For each disabled private IP address, the program cuts out a range of addresses [[start1, end1], [start2, end2], …].

After that the Math.random() function comes into play which allows the generation of random IP addresses from the given allowed range, the program first randomly selects one of the ranges and then randomly selects a number from that range.

This process is repeated count times, resulting in count random IP addresses, which are converted back to dotted form.

Below formula is used for each individual octet:

a = (dec>>24)&0xff, b = (dec>>16)&0xff, c = (dec>>8)&0xff, d = dec&0xff

If a non-decimal base is selected then bignumber.js library converts each octet(a = new BigNumber(a)) to a new base by turning it into a big number in the desired base by the below command:

a = a.toString(base)

This function converts all octets in the required base to their decimal equivalent and concatenates them with the octetSeparator character. The ipSeparator character is then placed between each address and the next, thus displaying all the addresses on a single line.

Can you make up an IP address?

You cannot choose your public IP address, the Internet Service Provider(ISP) does it for you. However, your IP address can be changed based on your location; where and how you connect to the internet.

Why do you need a Random IP Generator?

The Random IP Address Generator tool can be used for a variety of tasks, including generating test data for software development, generating IP addresses for use in simulations, and anonymizing IP addresses to protect user privacy. In addition, it can be used for testing, troubleshooting and research.

What is the difference between IPv4 and IPv6?

The primary difference between IPv4 and IPv6 addresses is the binary number format, with an IPv4 address being a 32-bit binary number separated by dots and an IPv6 address being a 128-bit binary number separated by colons.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud