//Using TcpClient Class TcpClient tcpClient = new TcpClient(); tcpClient.Connect("http://myserver.com", 123); // we can also say tcpClient.Connect(IPAddress.Parse("125.54.10.25"), 123); //Using Socket Class Socket client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); client.Connect("http://myserver.com", 123); //or client.Connect(IPAddress.Parse("125.54.10.25"), 123);
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
125.54.10.0.0
client.Connect("http://myserver.com", 123);
client.Connect("myserver.com", 123);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)