Bhoot 0 Junior Poster in Training

I am developing a client-server application.
However, here the situation is a bit different : There is only a single client that would connect to several servers that are listening for a connection.
This means that the only client would require the port numbers of all the server exes.
I am not able to pass the port numbers from each of the servers to the client.
Also, as i am testing the whole VS solution on a single PC, its required that each of the server exe must have a unique port number assigned with it. I tried to solve the "unique port number" situation by creating a key in registry. However, this doesnt prove useful when i run multiple servers (multiple exes of servers).
Could anyone provide me with some solution?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.