Send message? This is not exactly how it works. You can send a message only if there is something listening to the message, some other code. Basically, I would advise to use TPC transport. In this case, one side is called server side and listens to incoming connection and another part is called a client part; it connects to the channel using IP address or its equivalent and the IP port. Of course, the same application can play a role of server or a client at the same time, as it can use several threads and channels. A server part needs at least two network threads: one listening for new connections, another one reading/writing from/to network streams.
There are several levels of networking you can use. I provided my short overview of them in my past answers:
how i can send byte[] to other pc[
^],
Communication b/w two Windows applications on LAN.[
^].
You can get general ideas of the architecture from my past answer:
Multple clients from same port Number[
^].
—SA