Serverless LAN Chat in vb.Net using UDP

Well, this is my first post and unfortunately (or fortunately), I don’t have enough time to properly edit it but I will do what I can do. I have been trying to work out how to write a program in vb.net that doesn’t use any server. Rather, a computer that has the program can communicate with another computer with the same program on the same network. In the process of study, I realized that the only way (or maybe the easiest way) to achieve this feat is by using the UDP (User Datagram Protocol) to send the message through a particular port and on a broadcast IP address so that any other PC that is listening for messages in the broadcast IP address can get the message without interference by any form of server. For further information about the UDP, click here. Although as we all know, nothing good comes easy. The UDP is not an efficient method of sending information because the message sent may not get to the recipient or if a sequence of datagrams are sent, they are not guaranteed to arrive the recipient in the same order in which they were sent. Any program that insists on using the UDP must therefore be ready to handle these setbacks. During my search, I came across several sites that have information on the chat system. These links (no matter how few) are listed below:

http://asp.dotnetheaven.com/util/srcview.aspx?path=~/howto/samples/net/TCPUDP/Chat.src
http://www.codeguru.com/forum/showthread.php?goto=lastpost&p=1556461
http://www.codeguru.com/forum/showthread.php?p=1556466#post1556466
http://www.codeguru.com/forum/archive/index.php/t-423773.html
http://www.codeproject.com/KB/IP/TCPIPChat.aspx

This list will be updated as deemed fit.  Enjoy!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s