0

i'm going to develop C# client-server application, and i need to tell the clients what is the server's ip address it could be happen from client or from server broadcasting.

any help and soloution on this could be very usefull, and if there is some sample code it would be much better!

Thanks.

MAYSAM GAMINI
  • 49
  • 1
  • 3
  • 11
  • Correct me if I'm mistaken, are you talking about server discovery? That is client doesn't know the address of the server in advance (neither its hostname nor its IP address) so you need means on the client to figure that out somehow? – Ihor Kaharlichenko Aug 18 '12 at 10:24
  • Yes exacly i'm talking about server discovery!!! i need tell the clients whats the server ip!!! – MAYSAM GAMINI Aug 21 '12 at 05:15

1 Answers1

0

you can broadcast using BroadCast method here a project that shows you how to do it: http://www.codeproject.com/Articles/12286/Simple-Client-server-Interactions-using-C

Hassan Boutougha
  • 3,871
  • 1
  • 17
  • 17