c# connect tcp

C#
TcpClient tcpClient = new TcpClient("127.0.0.1", 8080);TcpClient tcpClient =  new TcpClient();
tcpClient.Connect(IPAddress.Loopback, 8080);Socket s = new Socket(AddressFamily.InterNetwork,   
   SocketType.Stream, ProtocolType.Tcp);  

Source

Also in C#: