Client/Server Chat Messenger Project Code
Please follow the below link to download the project code
https://docs.google.com/file/d/0B9oM-lfxf9F9WXhOdDdYMEpHWlE/edit?usp=sharing
Please follow the below link to download the project code
https://docs.google.com/file/d/0B9oM-lfxf9F9WXhOdDdYMEpHWlE/edit?usp=sharing
Project Details with Screenshots
In this project we have built a simple Client Server chat application
with GUI. The chat process will involve at least two or more machines on a LAN.
We can use this chat application on single machine also by opening two Netbean/CMD
instances and running server program on one instance and client program on
other instance. Basically it works on the concept of one Server program for listening
to a particular port for messages and one Client program for sending the
messages on a particular port of a particular IP(IP can be localhost or IP of
other machine ).
The functionality of two programs are as follow:
Server Program:
- · This program listens to a particular port for incoming messages and shows them to users.
- · Client running on any Machine can connect to the this server program by giving address(IP) and port of this system.
- · Receive the incoming messages and show them in server window to users.
Client Program:
- · Connect to the server machine by giving the IP and port of the server machine.
- · Send the message typed by the user to server machine .
Software Used:
- · JDK1.6
Technology
Used:
- · JFrames, Socket Programming, IO Package
Project Screenshots
Client
Program GUI :-
Server
Program GUI :-
Command
to run Server Program:-
- First install java in your system
- Then copy the downloaded files from the link given above to the desired location on your computer.
- Then run the command as in below screenshot
For Client Side: