Added ipv6 support
Turning off IPv6 only will not throw