//client part TcpClient client = new TcpClient(); client.Connect(new IPAdress(new Byte[] { 127, 0, 0, 1 }), 12345); //Replace 127,0,0,1 with your external ip and 12345 with the choosen port (and forwarderd on the server) //Now its connected or it times out //Server part TcpListen server = new TcpListener(IPAdress.Any, 12345); //Replace 12345 with the forwarded port server.Start(); //Start Server server.AcceptTcpClient(); //Holds the thread till a client connects
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)