This is the cod written in java by which we can connect the two pepole who are connected with the same server(router). #installation 1.start your cmd. 2.After that start chatserver by typing javac chatserver.java. 3.run java chatserver. 4.After that start another cmd. 5.and start chatclient.java by javac chatclient.java. 6.run java chatclient . 7.Now your chating start.