Did you know that it is possible to write a simple chat for two people in Java, including GUI in less than 120 lines? Well, I didn’t. Here is the code. Two hours of work :)
I have been thinking about writing multiplayer for my Magic the Gathering. I have started reading about RMI but I was too tired to get through it. Then I remembered sockets I used in my alarm manager and extended a bit what I used there. If you would like to test it on your local machine, use IP “127.0.0.1” or just write “localhost”. Compiled jar file available here.