public void Connect1(string host, int port) { IPAddress[] IPs = Dns.GetHostAddresses(host); Socket s = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp); txtPassWord.Text = "Establishing Connection to " + host; if(!s.Connected) s.Connect(IPs[1], port); txtPassWord.Text += "Connection established"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)