quiz-buzzer/
├── server.js
├── package.json
└── public/
└── index.html
- Download from: https://nodejs.org (LTS version)
- Verify:
node --versionandnpm --version
mkdir quiz-buzzer
cd quiz-buzzer- Save
server.jsin root folder - Save
package.jsonin root folder - Create
publicfolder - Save
index.htmlinsidepublicfolder
npm installnpm startYou'll see:
Server running on port 3000
Find your IP and share: http://YOUR_IP:3000
- Create hotspot on any Android phone (data OFF)
- Connect laptop to hotspot
- Find laptop IP:
- Windows:
ipconfig→ Wireless LAN adapter → IPv4 Address - Mac/Linux:
ifconfigorip addr
- Windows:
- All phones connect to same hotspot
- Share URL:
http://192.168.x.x:3000(your laptop IP)
- Windows: Settings → Network → Mobile Hotspot
- Mac: System Preferences → Sharing → Internet Sharing
- All phones connect to laptop hotspot
- Use:
http://192.168.137.1:3000
- Open browser → Go to server URL
- Click "Contestant"
- Select your number (1-6)
- Big BUZZ button appears
- Press to buzz!
- Open browser → Go to server URL
- Click "Admin"
- See all 6 contestant cards
- When someone buzzes:
- Hear "BOP" sound
- Their number lights up gold
- Click "Reset Buzzers" after answer
- ✅ localStorage persistence - Number saved if app closes
- ✅ Auto-reconnect - Handles connection drops
- ✅ Instant lock - First buzzer disables others
- ✅ Visual + Audio feedback - BOP sound + golden highlight
- ✅ Responsive design - Works on all screen sizes
- ✅ No internet needed - Pure local network
- Check all devices on same WiFi
- Check firewall (Windows may block port 3000)
- Try:
http://192.168.x.x:3000with correct IP
- Click anywhere on page first (browser audio policy)
- Check volume not muted
- Check WebSocket connection (green dot on admin)
- Refresh page
- Check server still running
- Keep hotspot phone plugged in (battery drain)
- Test with 2 phones before full setup
- Bookmark URL on all phones for quick access
- Admin should test audio before quiz starts
- Latency: 20-50ms (excellent for quiz)
- Range: 10-15 meters (typical WiFi hotspot)
- Data usage: ZERO (all local)
- Battery: Moderate drain on hotspot phone
Enjoy your quiz! 🎉