IP addresses can be represented in several different ways, including IPv4, IPv6, integer, and hex formats.
This is the most common notation for IPv4 addresses. Each address is 32 bits in length and the 32-bit address is broken up into four 8-bit octets. Examples include
IPv6 addresses are 128-bits in length. Although IPv6 addresses are 4 times as long as IPv4 addresses, IPv4 addresses can still be written in IPv6 notation. Two colon characters (::) can also be strung together to shorten notation and eliminate groups of zeroes. Examples include
To convert an IP address to integer notation, each section of the IP address (separated by ".") is multiplied by 256x. In this case, x represents the position of the section from right to left, starting with 0. Here is an example using this formula:
192.168.1.1 = (192 * 2563) + (168 * 2562) + (1 * 2561) + (1 * 2560)
A representation of the IP address in base-16 format. This is also known as "hex" format.