A simple, lightweight chat application for sharing messages between devices on the same Local Area Network (LAN).
- 💬 Real-time messaging across LAN devices
- 📋 One-click copy to clipboard
- 🎨 Modern, responsive UI
- 💾 Persistent message storage
- 🔄 Auto-sync between devices
- ⌨️ Keyboard shortcuts (Ctrl+Enter to send)
-
Install dependencies:
npm install
-
Start the server:
npm start
-
Access the chat:
- Local: http://localhost:3000
- LAN: Use the IP address shown in the terminal (e.g., http://192.168.1.100:3000)
-
Share with other devices:
- Copy the LAN URL from the terminal
- Open it on any device connected to the same network
- Start chatting!
- Type your message in the text area
- Click "Send" or press Ctrl+Enter
- Messages appear instantly on all connected devices
- Click "Copy" button on any message to copy it to clipboard
- Messages are automatically saved and persist between sessions
The server automatically detects your network interfaces and displays available URLs. Share the LAN URL (usually starts with 192.168.x.x or 10.x.x.x) with other devices on your network.
Press Ctrl+C in the terminal to stop the server. All messages are automatically saved.
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- Backend: Node.js with Express
- Storage: JSON file (messages.json)
- Port: 3000 (configurable in server.js)
- Can't access from other devices: Check your firewall settings
- Messages not syncing: Ensure all devices are on the same network
- Server won't start: Make sure port 3000 is available
Enjoy your simple LAN chat! 🚀
