A chat application for the terminal using Java with communication between network sockets using the TCP protocol.
- Server-Client Architecture: A server to manage connections and multiple clients to participate in the chat.
- Real-time Communication: Chat with friends in real-time over a network.
- User Identification: Enter your username to identify yourself in the chat.
Before running the application, ensure you have the following installed:
- Java 11+ ☕️ (For running the application)
-
Clone this repository to your local machine:
git clone https://github.com/viniciusfinger/java-chat.git
-
Navigate to the project directory:
cd java-chat
-
Start the server by running the following command in the terminal:
java ChatServer
This will start the server on port
12345
. -
Start the client by running the following command in another terminal window:
java ChatClient
-
When prompted, enter the server's IP address. If you're running it locally, use
127.0.0.1
. -
Enter your username and start chatting with your friends!
Contributions are always welcome!
Feel free to customize the application to suit your needs. Modify the server-client implementation, enhance the user interface, or add new features!