- Notifications
You must be signed in to change notification settings - Fork7
Text based Chat application with TCP sockets over a local network with Java
License
darajnish/netchat-java
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a fun project I did while I was a kid to get a taste of developing a GUI application in Java. This project has no relevance as a consumable application as it lacks the capabilities of a good network chat application and security one would expect, but it may help as a explorable example for the new learners who wish to have a glance at examples. I'm not modifying the code and I've kept it as it was back when I created it.
This application is a simple text based chat application over TCP sockets in Java, with a support for just two people, and with a poorly designed User Interface and a lot of bugs and security issues. The project is divided into two sub-projects,ChatServer andChatClient, theChatServer part is the code for running the server andChatClient part is the code for running the client which would communicate with the server.
- JDK 1.7 or above
- Apache Ant 1.9.16 or above
This project was made usingNetbeans IDE and both the sub-projects can be easily opened, build and explored using Netbeans. But, they can even be built usingant by first changing directory into the respective sub-projects and then running,
ant jar
After the build is complete, the executable jar file would get created intodist directory.
Once the jar files are created for each of the sub-projects, we can continue by first running theChatServer which would host our chat over the network.
java -jar ChatServer/dist/ChatServer.jar
Then, setup the server by providing it with a name and a port number.
Once the server is running, it's time to run theChatClient which would connect to the server over the network on the provided port number and the hostname / ip address of theChatServer instance.
java -jar ChatClient/dist/ChatClient.jar
When both are setup, we can use the crappy GUI to chat using the server and client.
This project is underWTFPL License
About
Text based Chat application with TCP sockets over a local network with Java
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.