Run this on your computer and everyone on your WiFi can play!
Go to https://nodejs.org and download + install Node.js
That's it! It will install everything and start the server automatically.
OR manually:
npm install
npm startWindows:
ipconfigLook for "IPv4 Address" - something like 192.168.1.100
Mac/Linux:
ifconfigor
ip addrTell everyone to go to: http://YOUR_IP:8000
Example: http://192.168.1.100:8000
Windows:
- When prompted, click "Allow access"
- Or: Settings → Firewall → Allow an app → Node.js
Mac:
- System Preferences → Security → Firewall → Allow Node
Try different port:
Edit server.js and change const PORT = 8000; to const PORT = 3000;
✅ Real server running on YOUR computer
✅ Everyone connects to YOUR_IP:8000
✅ Shared leaderboard updates every 2 seconds
✅ All scores saved in memory (resets when server stops)
- Other computers on WiFi
- Phones on WiFi
- Tablets on WiFi
- ANY device on your network!
Press Ctrl+C to stop the server.