Click here to Skip to main content
15,895,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i send message using c# to other pc.give me source code.
Posted
Comments
Sergey Alexandrovich Kryukov 5-Mar-13 22:46pm    
We are not giving out source code here, excluding some cases used to give you a code sample illustrating some ideas or recommendations.
You have to write source code by yourself. In this case — most certainly.
—SA

1 solution

It's apparent that you cannot just "send message" anywhere. You always need some applications on both hosts, sending and receiving. Typically enough, one of the sides is a Windows Service, when it comes to Windows (C# is used not only on Windows, it can be used in CLR implemented on many different platforms, including non-Microsoft).

The communication part of software can be created on different levels, from raw sockets to .NET networking to WCF, self-hosted or not. I provided short overviews of those levels in my past answers:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

You can select any of the approaches; it may depends on many factors, not only requirements, but even your experience and personal taste.

—SA
 
Share this answer
 

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