IPv4 as a single integer

An IPv4 address can be represented as an unsigned integer from 0 through 4294967295. Multiply each octet by its positional weight.

Practical example

192.0.2.1 equals 3221225985. A decimal representation is not a different network address.

Try it yourself

Open the related tool and compare its output with the example above.

Browse all networking guides