Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.27 KB

File metadata and controls

67 lines (44 loc) · 1.27 KB

Online Chat Application

A simple multi-client chat application using Java socket programming.

📋 Features

  • Supports multiple clients connected to a central server.
  • Real-time message broadcasting.
  • Simple text-based user interface for communication.

🛠️ Prerequisites

  • Java Development Kit (JDK) 8 or later.

📂 Project Structure

ChatApp/
├── ChatServer.java
├── ChatClient.java
└── README.md

🚀 How to Run the Application

  1. Compile the code:
javac ChatServer.java ChatClient.java
  1. Start the Chat Server:
java ChatServer
  1. Start the Chat Clients: (Open multiple terminals)
java ChatClient
  1. Chat away!

📜 How It Works

  1. The ChatServer listens for client connections on port 12345.
  2. Each client sends and receives messages via ChatClient.
  3. Messages are broadcasted to all connected clients.

📧 Example Output

Client 1: Hello, everyone!
Client 2: Hi there!
Client 3: Welcome to the chat!

📚 Additional Notes

  • Ensure the server starts before any client.
  • Customize the port by modifying the PORT constant.

📝 Author

  • Developed by [David Oke (Mr Iridescent)]