get_ip_from_hostname: check all address we get from getaddrinfo_all for non-local IP