How to make a simple chatroom that would run as an applet? I'm trying to figure out how some simple two-player games are made, like online tic-tac-toe for example. I found an example, but in whatever server I run it, it still displays "There is no connection with serverName". I am trying to understand how to use Socket and ServerSocket, but it's so difficult. It would be really good if I could find a simple example that would work - I'm so desperate 'cause I have been reading long tutorials for hours by now.