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)]