Basically IP is called Internet Protocol, IP address is made for identity any device on the internet like computer, scanner , laptop , smart phones etc, which we usually use over the network . Basic purpose of the (IP) is to find out devices on the network with unique IP addresses like , in our world we all person have unique ID and so in network world our devices are given unique IP address. Checkout original site for more info.
IP v4 is the version which is mostly used computer or devices , IP version 6 is latest version and you would find in your operating system in the section of “Local Area Connection Status > Properties” both IPv4 and IPv6 are installed in the networking tab IPv4 would be first one and IPv6 would be just below the IPv4.
IPv4 is a fourth revised version of the IP and used it worldwide for data communication over different networks, IPv4 uses 32-bit addresses and Ethernet consists in five classes, called A, B, C, D, and E. Classes.A Class has subnet mask 255.0.0.0 and B has 255.255.0.0 and C class has subnet mask 255.255.255.0
We can see here , how IP address works in binary like, IP, 18.104.22.168 would be in binary the result 11000000.10110110.01101010.00000010 like this, on the back end, now we can easily calculate binary value has 8 bits and multiply by 4 so it would be 32 bits.
IPv6 is a latest version of IP, IPv4 is 32 bit address, but IPv6 is 128 bits and has 8 hexadecimal values which is separated from (:). Every hexadecimal numbers consist 16 bits and 2 bytes but IPv4 consist 8 bits multiply by 4 = 32 bits but here in IPv6 16 bits multiply by 8 = 128 bits. IPv6 has the ability to allow more devices connected on the network as it has wide capacity of unique numbers, typical IPv6 address looks( 2001:a0:9d38:253c:10d6:d2e:4949:368) here now check the 2nd value of this IP address is “a0” abasically , that is “00a0” but IPv6 omits the leading zeros, which makes this value as “a0”.