Skip to content

theniteshdev/nodejs-local-chatapp-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-local-chatapp-CLI

A CLI chat app using nodejs TCP server in LAN(Local Area Network).

App Preview

A simple command-line chat application built with Node.js that allows communication between multiple machines over a local network (LAN) - no internet required.


Steps to Run on Your System

  1. Install Node.js Make sure Node.js is installed on your system.

  2. Start the Server Run the following command in your terminal:

    npm run dev
  3. Start the Client (Local Machine) In a new terminal, run:

    node --watch client.js
  4. Connect from Another Machine (Same LAN)

    • Copy the client.js file to another machine.

    • Run:

      node client.js
    • Ensure the server is already running on the host machine.


How This Is Helpful ?

  • 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.


Notes

  • Ensure all devices are connected to the same local network.
  • You may need to configure firewall settings to allow communication.

Enjoy chatting locally! 🎉

About

A CLI chat app using nodejs TCP server in LAN(Local Area Network).

Resources

License

Stars

Watchers

Forks