A simple LAN-based Java chat application for real-time messaging on the same network.
This project demonstrates basic socket programming in Java, with a minimal user interface and straightforward setup — ideal for learning or experimenting with networked applications.
This application allows users on the same local area network (LAN) to communicate by sending and receiving messages through socket connections. The focus is on simplicity and clarity rather than full feature completeness.
- Real-time text messaging over LAN
- Server-client architecture
- Lightweight and minimal dependencies
- Easy to run and test locally
- Clone the repository:
git clone https://github.com/Devashish-Pisal/lan-chat-app.git
- Navigate into the project:
cd lan-chat-app - Build using Maven:
mvn clean install
- Run the server:
com.lanchatapp.lanchatapp/Server/Servre.java
- Run one or more clients:
com.lanchatapp.lanchatapp/StartClient.java
- One instance acts as a server, listening for incoming client connections.
- Other instances act as clients, sending messages to the server.
- The server broadcasts received messages to all connected clients.
- All communication happens over TCP sockets.
- Make sure all users are on the same LAN.
- SQLite database on server.
- Ports and configuration can be updated in code as needed.

