Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 7, 2024. It is now read-only.
/netchat-javaPublic archive

Text based Chat application with TCP sockets over a local network with Java

License

NotificationsYou must be signed in to change notification settings

darajnish/netchat-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

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.

Building

Requirements

  • 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.

Running

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.

License

This project is underWTFPL License


[8]ページ先頭

©2009-2025 Movatter.jp