Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am looking for suggestion what type of communication method(WCF,TCP/IP...)
to implement for client server project, usually the clients sending the data to the server, somthimes the server send command to the clients.

Some info.:
The connection must be open all the time.
My server has static ip, the clients no.
The client runing .net console application.

Thanks.
Posted

1 solution

 
Share this answer
 
Comments
galba2018 4-Apr-13 2:13am    
Hi,
Thanks for your quick reply, i am familiar with the wcf framework, i already implemented a
solution based on wcf with http web services, but in this case only the clients are triggering the server because he as constant ip, but how can the server trigger the client that have dianymic ip's - whats the best way to solve this?
galba2018 4-Apr-13 6:27am    
thanks, but this method is triggering all the clients that suscribed to the server, what can i do if i want to trigger only 1 client?
Thomas Daniels 4-Apr-13 6:34am    
You can try this:
After a client connected to the server, give the client a unique ID, and send the ID to the client. If you need to trigger an IP, trigger all clients, and if you want to trigger a client with ID '500' for example, then send to all clients a message like 'C500?' and if client 500 receives the message, client 500 should answer with 'C500!', so the server knows the IP of client 500. It's complex, but it works.

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