try getting ip in a IPv4/IPv6 environment