Try all IPv4 & IPv6 addresses until one works.