There is a ready made software for lan messaging. It's called IP Messenger.
You can't expect from us like provide the source code for particular requirement. If you are stucked anywhere than we can try to solve your problem.
We can not provide you the whole source code.
Download link for IP Messenger :
Hope you understand.
DNS Gold Member
"Failure is the path of least persistence"