You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server Configuration: Default port is 7777. Modify Server.java to change settings.
Client Configuration: Update the server address and port in Client.java
Usage
Start the Server: Launch the server application first. The server will wait for incoming client connections.
Start the Client(s): Launch one or more instances of the client application. Clients can connect to the server and start sending messages.
Send Messages from both the ends: Use the text input field in the client GUI to send messages. All connected clients will receive the message.
Code Structure
src/main/java/org.example/Server.java: Contains the server-side code for handling client connections and broadcasting messagesand GUI
src/main/java/org.example/client.java: Contains the client-side code for sending and receiving messagesand GUI part
src/main/java/org.example/Main.java: Event handling using multithreading
Contributing
Contributions are welcome! If you would like to contribute to this project, please fork the repository and submit a pull request with your proposed changes.
License
This project is licensed under the MIT License.
Acknowledgments
Java Documentation: For comprehensive details on Java libraries and tools used.
Java Swing Tutorial: For guidance on creating the GUI components.