

If you want a private conversation with one user, right click his name bar and send a request. Press refresh button to find all online users. In main frame, you can chat with group members.

Pick any name your like which is different from names of current online users. The port number can be changed in file SocketServer.java. If you run all programs in one computer, you should enter 127.0.0.1 and default port 23596. To get start, client must enter the address of the machine your server program is running on. run with 'java server.loader' first and run 'java client.loader' to create one client at a time.
#Java vchat how to#
How to RunĬompile programs under server and client folder individually with javac command. They can also start private dialog with any others online users by right click their name bar. Users can find all others online by click the fresh button on main frame. All users online are in one chatting group. This program supports only plain text chatting. If this article proves to be any help, please let me know.A simple java chat room project with UI Functionality Implemented as good as I would have liked. The purpose of this project was to demonstrate Java sockets, so the whole History feature is not
#Java vchat code#
Source code is licensed under The Code Project Open License (CPOL). This is a class project which I wanted to share with others. For any browser to connect to a web-server, this server needs to have a global IP address so that it is visible on the Internet. Similarly jServer also is a application server and for chat over two different networks (say a campus LAN and DSL at your house), it also need to be run on a computer with a global IP address. To understand this, take the example of any web-server. Many people are confused why chat over different networks is not possible. The project's main purpose was to demonstrate networking concepts and due to deadline limitation it was not completed.Ģ. There was much confusion about two issues regarding the project. Upload upl = new Upload(addr, port, ui.file, ui) On sender side, start a new thread for file upload // Connect to the port specified in reply Reply to sender with IP address and port number Send( new Message( " upload_res", ui.username, dwn.port, msg.sender))
#Java vchat download#
On recipient side, start a new thread for download Unlike messages, files do not go through jServer.

In this article I am demonstrating a chat application which can handle multiple users at the same time.
