• About
  • Archives
  • Categories
  • Chat Application using WCF

    2010 - 04.01

    Chat Application using WCF NetTcpBinding


    [V.2] 24.05.10

    + Support for (two way) Authentication, Confidentiality & Integrity using RSA Public Key Encryption/Decryption & MD5 Hashing (currently working only for user passwords)


    1- Calculate Password’s MD5 Hash

    2- Encrypt Using User’s Private Key

    3- Append to Original Password

    4- Encrypt whole Packet with Server’s Public Key

    + FIX: Nudge Glitches



    + Support user registeration

    + Support adding contacts using their usernames

    + Allow user to accept or reject adding requests

    + Show user’s contact list showing who’s online and who’s offline

    + Support Contact status

    + Support Contact DP

    + Update status & DP for online conacts

    + Allow sending and receiving text message to and from any online contact

    + ‘Enter’ to send ‘Cntl-Enter’ for new line

    + Toolbar notifications

    + User is writing..

    + Added Icons

    + Added invitations

    + Support sending emotions within text messages

    + Selecting an emotion

    + Auto detect emotions (When writing or copy-paste)

    + Nudge

    + Nudge lock for 1 minute

    + Asynchronous Calls

    + Send offline msgs

    + Show offline messages to the user once s/he goes online

    + Allow sending files (of any type or format) to an online contact (700 MB+)

    + Support Video conversation (each peer sees the other peer’s live camera)

    + Support Audio conversation (each peer hears the other peer’s live voice)

    -> [Security Measures] <-

    + Generate a session key (random number) to be assigned to each online user & used to communication with the server

    + Appending a random number to each contacts’ Display Pictures

    + Generate a random invitation ID foreach sent invitation and store receiver’s response along with the invitation ID


    Registration Window

    Chat Window




    Executables (Host &  Client) [V.2]

    Executables (Host &  Client) [V.1]


    Tags: ,

    38 Responses to “Chat Application using WCF”

    1. Rehab says:

      Great works msa (Y)

    2. Rehab says:


    3. I like it specially the Personal Picture for the other guy, he looks handsome, do you know him ?!?! :D

      • Sure, He psychologically helped me a lot throughout the project :P ;)
        His Name is Nagi BTW, the founder of Beyond Dev :P:P And you get fantastic results when u encrypt his full name using Rail Fence of depth level 4 :D:D:D

        • Kouki says:

          I have been using WCF LOB Adapter Pack to sync SAP HR data into Microsoft Active Directory. It has been working ok in 32 bit OS. But, when I tried using it in a 64 bit OS, I was gtiteng the error “Cannot Load Microsoft.Data.SAP.SAPClient or any of the dependencies”. I installed 64 bit WCF LOB Adapter Pack before trying it out. I tried installing 32 bit version into my pc and it won’t let me install it as another version of the Adapter Pack was installed already. I will try some other way. But, if anyone have any information regarding this, please post the solution to fix it.

        • Darin says:

          Needed to put you this very little note so as to give many tahnks again on the lovely tricks you have featured above. It was so tremendously generous of you to offer unreservedly all that a few people would have advertised as an e-book in making some bucks for their own end, principally considering that you could have done it if you wanted. The tactics also worked as a good way to understand that other people online have a similar fervor similar to my own to find out a great deal more in terms of this problem. I think there are thousands of more enjoyable times ahead for individuals that browse through your website.

    4. Mohammed El-Prince says:

      eh ya 3am el sho3’l el gamed da msA, bgd rabena yebareklak :)

    5. nada hesham says:


    6. meera says:

      hi ur project s super,im doing this project in final year ,I want the project abstract ,im using the software Asp.net,pls to send the project abstract sir thank u

    7. kien says:

      hi, i like this work, howmuch of yource sourcedoce

    8. moses says:

      hi, i would like to know how u implement the Video conversation and audio conversation with wcf? n 1 more thing is can socket programming can create Video conversation ?

    9. Phuc says:


      Can you share the source code of this implement. We would like to be many thank to you

    10. Bhaskar reddy says:

      Shady really its soooooooooooooo good

    11. Bhaskar reddy says:

      Shady can u explain about your project please.i am also doing this type of application, if it is possible can u send ur source code to me plzzzzzzzzzzzzzz its really superb that’s y iam requesting u

      • Aline says:

        (I’m not sure if I’m posting this in the ccrreot place as I was unable to post it from the Dashboard.)The type of physician I would like to work with is a gerontologist. A gerontologist specializes in caring for the elderly. I have a fondness for our older population. They built out society and lived in a time that many of us can learn from. I would take great pride in caring for them as they age. In my opinion, working with a doctor that shares my passion and excitement would be the ideal work environment.The type of physician I would not be as excited to work with would be a proctologist. To be completely honest, I just don’t think I have what it takes to be in that environment. It’s important to be professional in any medical environment. I believe my sense of humor would not allow me to be as professional as I would need to be. I would also prefer not to work with ophthalmologist. Several years ago I spent a week with my grandfather at a specialist to have cataracts removed. I found it very difficult to watch the videos of my grandfather’s up coming procedures. It wasn’t difficult caring for my grandfather after surgery, but I must admit the pre-op was an experience that I would not want to assist in on a daily bases.

    12. phu tran trong says:

      I like your application so much .Do you have send me source code of your Chat Application using WCF NetTcpBinding.Thank you

    13. Arsh says:

      Hi All,

      You can check my WPF and Silverlight 5 Chat Appliaction(partially complete) at:


      This application is using net.tcp protocol to connect to the WCF service. Also you can download the fully functional WPF client for testing.


    14. vaibhav says:

      good work dude.keep it up.it would beneficial for us if you elaborate your code Thnx

    15. WCFDude says:

      Hello Elyaski,

      I would like to review the source code
      I have implemented the chat using NetTcpBinding. I would like to check with your source code if there are any measures for me to improve on

      Many Thanks

    16. Guatam says:

      can i have source code

    17. Guatam says:

      Can i have source code

    18. Guatam says:

      Can i have Source code.

    19. Anonymous says:

      where source ?

    20. HEMAL says:

      where is source code ?

    21. HEMAL says:

      where is source code ?

    22. MLuMarques says:

      Please my Friend send me your code chat, please hi need is chat

    Your Reply