Try to connect first via IPv4 and then IPv6