This is a simple chat application from the terminal. It is completely based on the socket class of Java.
On one side run the server.java in the background and then run the ChatClient.java in the forground in the terminal and do the same on the other side;
Make sure you run server.java files on both systems first and then run the ChatClient.java file.
On system 1 javac *.java; java Server.class &; java ChatClient.class; On system 2 javac *.java; java Server.class &; java ChatClient.class;