Click here to Skip to main content
15,886,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
There are numerous articles on internet explaining ways to chat over intranet using WCF, sockets etc. But none of them work over the internet. If some do, they do it with timer, which I don't prefer.

I would like to build a WCF chat engine which can communicate asynchronously on Internet (guess that should be HTTP).

I am not getting the way to start it.
Should I use sockets or WCF?
How will the server transfer messages to its clients?
How will I keep track of clients as they have dynamic IP and it tends to change?
What technology should I use?

Please let me know the way out.
And I wish to use coding only, no third party plugins etc.
Posted
Updated 16-Mar-11 2:04am
v2

1 solution

They ALL work over the internet. And yes, WCF should be fine. You don't have to worry about clients IP addresses because they don't change as long as their connection to the internet is alive. The only time their IP will change (about 99.99% of the time) is if they cycle the power on their cable modem/router.

Once you understand WCF, you'll understand how the message traffic works.
 
Share this answer
 
Comments
Wild-Programmer 16-Mar-11 9:01am    
Thank you John, you've given a good insight. Probably I should dive into books and study WCF in depth. I think learning about Duplex communication will suffice the business.

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