hi jigish.
Well,I am not sure which platform you are woking in, linux? windows?
The recommend way is use ipmsg(in linux named ip2message), it support command line,you can use it send some messages to others with shell.
I tested in my windows and it works well.
also,you can send messages use socket. You need follow the IPMSG protocol, pakage the message and send to others use UDP socket.
--
Thanks & Regards
rssidea