This will return `0` if it's not a IP, `4` if it's IPv4 and `6` if it is IPv6.