Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I have a client application which will be deployed on multitude of client PC's. The client will communicate with the server at certain intervals. Server will also communicate with the clients randomly when a new update is available. I was contemplating on wcf self-hosted services, as my client app is going to deployed on systems with variety of configuration. I am not finding WCF sel-hosted service as a promising option. I have following questions/doubts
 
1) What is the most accepted way of client<->server communication?
 
2) How do the server know about clients changing ip address?
Posted 11-Jan-13 21:12pm
Edited 11-Jan-13 21:32pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

1) There are a huge number of them, exactly which you want to use is totally up to you, and will depend on what your application is supposed to do. WCF is a good choice though for a general communications medium.
 
2) It can't. The IP address is the only way the server can communicate with a client: if the client changes it's IP address then the server can no longer contact it, and the IP address could be re-used by a different computer almost instantly. Unless the client can say to the server "I am about to change my IP address to xxx" (and generally when you change IP it is assigned by the ISP and you can't know it in advance) then it will not work. If you mean "how can I detect that this user has changed IP address because he wants to misuse our services" then you are limited to storing a cookie and checking it when a new user connects.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,142
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 12 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100