ipv4 is the version name of the network protocol. One of the main benefits of IPv6 versus IPv4 is that it provides a pool of nearly unlimited IP addresses. Other improvements include more efficient routing. There are lots of class in network protocol ipv4 is the version number of that protocol there are another version exist name is ipv6. The inet type holds an IPv4 or IPv6 host address, and optionally its subnet.