Click here to Skip to main content
15,890,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have a client-server application, in which multiple clients connect to the server using Winsock. While testing, both server and client applications reside on the same machine (my development machine). I can connect one client at a time to the server using Loopback interface. How can I test multiple clients on the same machine (localhost)? I tried with multiple instances of client application, but because all clients connect from the same machine, the server is not able to identify new connections.

Regards,

Nejimon CR
Posted

1 solution

If the server identifies the clients only by IP Address then it won't be able to distinguish clients. If you have multiple instances of the client all running on one machine each one should be using a different port to connect to the server. If the server identifies clients by IP and Port then the server shouldn't have a problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900