Changed IP address validation
Switched to using gem ipaddress rather than IPAddr
as it was interpreting some IPv4 as incorrect IPv6