Click here to Skip to main content
13,087,797 members (83,452 online)
Rate this:
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 20:12pm
Updated 11-Jan-13 20:32pm

1 solution

Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 12 Jan 2013
Copyright © CodeProject, 1999-2017
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