var addresses = Dns.GetHostAddresses(hostnameOrIP); if (addresses.Length > 0) { var address = addresses[0]; var socket = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp); var endPoint = new IPEndPoint(address, port); socket.Connect(endPoint); // socketã使ã£ãå¦ç... } ãã®ããã°ã©ã ãNAT64ãããã¯ã¼ã¯ã§åããã¦ã¿ãã¨ã ãã¹ãåãæå®ããå ´åï¼eg. hostnameOrIP="google.com"ï¼â åé¡ãªãåä½ãã IPv4ã¢ãã¬ã¹ãç´æ¥æå®ããå ´åï¼eg. hostnameOr
{{#tags}}- {{label}}
{{/tags}}