A CLI chat app using nodejs TCP server in LAN(Local Area Network).
A simple command-line chat application built with Node.js that allows communication between multiple machines over a local network (LAN) - no internet required.
-
Install Node.js Make sure Node.js is installed on your system.
-
Start the Server Run the following command in your terminal:
npm run dev
-
Start the Client (Local Machine) In a new terminal, run:
node --watch client.js
-
Connect from Another Machine (Same LAN)
-
Copy the
client.jsfile to another machine. -
Run:
node client.js
-
Ensure the server is already running on the host machine.
-
-
No Internet Required Communicate with others on the same LAN without needing an internet connection.
-
Lightweight & Fast Runs entirely in the terminal with minimal resource usage.
-
Great for Learning Helps understand networking concepts like sockets, client-server architecture, and real-time communication.
-
Secure Local Communication Since it operates within a LAN, your messages stay within your local network.
-
Easy Setup No complex configuration—just run a few commands and start chatting.
-
Cross-Machine Communication Easily connect multiple devices within the same network.
- Ensure all devices are connected to the same local network.
- You may need to configure firewall settings to allow communication.
Enjoy chatting locally! 🎉
