c# system.net.sockets tcp tutorial code example Example: c# connect tcp TcpClient tcpClient = new TcpClient("127.0.0.1", 8080);