Playing With Code Samples

Java Socket Programming Examples
A Multi-User Chat Application
http://cs.lmu.edu/~ray/notes/javanetexamples/#chat