These two tutorials should show you how to do it with the bare minimum. The first one is more aimed at what you want I think.
Try this: http://www.nullskull.com/articles/20020323.asp
Or this: http://www.codeproject.com/Articles/38914/A-TCP-IP-Chat-Program