Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1.37 KB

File metadata and controls

15 lines (13 loc) · 1.37 KB

ChatApp Java

Chat App Java is a simple console-based client-server chat application built in Java using sockets. It demonstrates the fundamentals of real-time communication, threading, and network programming in Java. This project is ideal for beginners lookin' to understand how TCP/IP-based messaging systems work behind the scenes.

🧠Features

✅ Real-time messaging between multiple clients
✅ Multithreaded server capable of handling multiple connections
✅ Simple text-based interface
✅ Lightweight and minimal dependencies (pure Java)
✅ Clean separation between server and client code

🏗️Project Structure

↕ Server.java - Listens for incoming client connections and relays messages to all connected clients.
• Client.java - Connects to the server, sends messages, and listens for incoming messages from the server.

🚀 How it works

1. Server starts and listens on a defined port.
2. Clients connect to the server using the same port and IP-address.
3. Each client runs in its own thread to allow for simultaneous message sendin' and receivin'.
4. Messages sent from one client and broadcast to all other clients via the server.

🧪How to Run

1. Clone the repository

git clone https://github.com/menacedjava/chatApp-java.git