PDA

View Full Version : Broadcast and Find Server!



csvivek
22nd March 2008, 09:46
Hello There,

I have a client server application to develop.The Communication will use TCP.

In this :

The Client will know only the port to connect for a TCP connection.
It will not know the address of the server. in that case how will i find the address of the server.

I tried broadcasting a message and getting the peer address from the client side,
but its not working.

the server cannot broadcast.

so can anyone please suggest a solution!

Thanks in advance.

wysota
22nd March 2008, 10:21
So "peer" or "server" and "client"? :)

In general you'll need some service discovery protocol. Peers have to register themselves against some known source or you have to use one of available protocols like zeroconf or UDDI. Google for those terms to learn more details.