1) What examples have you tried? What "doesnt" work?
2) the MSDN documentation provides loads of examples.... they work 100% all the time.

hint: take a look at TCPClient, TCPListener and NetworkStream classes.