A Java server-client program that allows group chat as well as private chat features in a network.
Screencast is available at youtube link.
-
First you need to start Server, compile and run TcpServer.java file. javac TcpServer.java java TcpServer
-
Now server is up and running, open terminal/cmd and run TcpClient.java file at client site. javac TcpClient.java java TcpClient
-
Dialog box pops, enter an alias. Also if client and server program are running on different systems in a network, enter ip address of server and port separated by colon (:) in second textfield. And click on connect button.
-
Above steps starts the swing application, type any message to send to other online users. For private chat double click on alias that are listed on right panel of swing window.