IPaddr.new will also take IPv6 ranges, extending the scope of this validator in an unintended way.

IPaddr.ipv4? can be used to test it is definitely an IPv4 addr.