There are lots of examples of chat applications around that use the TcpListener and TcpClient classes. You might also like to use the UdpClient class if you don't need to set up a two-way conversation.