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.
✅ 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
↕ 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.
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.
1. Clone the repository
git clone https://github.com/menacedjava/chatApp-java.git
cd chatApp-java