I have found sample codes to make TCP connection with .NET, however it works only on my computer (both client and server runs on the same computer) and uses localhost.
I want to separate the client and server between different computers which are connected to the internet.
In the server's app. code there is:
TcpListener tcpServerListener = new TcpListener(IPAddress.Parse("127.0.0.1"), 4444);
and in the client's app. code there is:
TcpClient tcpClient = new TcpClient("localhost",4444);
What IP address should I write insted of localhost in the codes above?
Loading

Satyapriya NayakPosted Jul 7, 2012, 12:07 AM
Please refer the below links
http://www.codeproject.com/Articles/1415/Introduction-to-TCP-client-server-in-C
http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.connected.aspx
http://www.codeproject.com/Articles/35011/NET-TCP-Connection-Pooling
Thanks