IPAddr provides a set of methods to manipulate an IPv4 or IPv6 address
https://github.com/ruby/ipaddr