// Starting the Server ... TcpListener serverSocket = new TcpListener(8888); TcpClient clientSocket = default(TcpClient); serverSocket.Start(); ... // Listening for client's connection in a thread ... while (true) { clientSocket = serverSocket.AcceptTcpClient(); msg(" The client connected"); } ...
// Here, client makes connection to the server when user clicks a button clientSocket.Connect("192.168.1.1", "8888"); ...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)