Skip to content

MrIridescent/ChatApp-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages