Socket socket = new Socket(ip,port);
if the ip is IPV4,it can connect successfully,but if the ip is ipv6, it gets a exception as follow