Make connect_to_server() work in IPv6 only env.