adding ipv6 support
autodetect ipv6