10.225.126.40
npm run devYou should see:
✅ Server is running on http://localhost:8000
🌐 Network access: http://<your-ip>:8000
cd frontend
npm run devYou should see something like:
VITE v5.x.x ready in xxx ms
➜ Local: http://localhost:3000/
➜ Network: http://10.225.126.40:3000/
IMPORTANT: Look for the "Network:" line - this is the URL to use on other devices!
Option A: Allow through Windows Defender Firewall (Recommended)
- Open Windows Defender Firewall
- Click "Allow an app or feature through Windows Defender Firewall"
- Click "Change settings" (if needed)
- Find "Node.js" in the list
- If found: Check both "Private" and "Public"
- If NOT found: Click "Allow another app" → "Browse" → Find
node.exe(usually inC:\Program Files\nodejs\orC:\Users\YourName\AppData\Roaming\npm\)
Option B: Temporarily Disable Firewall (For Testing Only)
- Open Windows Defender Firewall
- Click "Turn Windows Defender Firewall on or off"
- Turn off for Private networks (temporarily)
⚠️ Remember to turn it back on after testing!
- On your computer, try:
http://10.225.126.40:3000 - If this works, proceed to other devices
- If this doesn't work, check firewall settings
Requirements:
- ✅ Both devices must be on the same Wi-Fi network
- ✅ Backend server must be running
- ✅ Frontend server must be running
- ✅ Windows Firewall must allow Node.js
On your phone/tablet/other device:
- Open a web browser
- Go to:
http://10.225.126.40:3000 - The app should load!
Possible causes:
- Firewall blocking - Check Windows Firewall settings
- Server not running - Make sure both backend and frontend are running
- Wrong IP address - Get your current IP:
Look for "IPv4 Address" under your active network adapter
ipconfig
If Vite doesn't show the Network URL:
- Make sure
host: '0.0.0.0'is invite.config.js - Restart the frontend server
- Check if port 3000 is available
Problem: Frontend loads but can't connect to backend
Solution: The API service automatically detects the host. If accessing via IP, it will use that IP for API calls too.
Your IP address may change if you:
- Reconnect to Wi-Fi
- Restart your computer
- Connect to a different network
Solution: Run ipconfig again to get the new IP address.
- Backend server running on port 8000
- Frontend server running on port 3000
- Windows Firewall allows Node.js
- Can access
http://10.225.126.40:3000on same computer - Other device is on same Wi-Fi network
- Can access
http://10.225.126.40:3000on other device
Get your IP:
ipconfig | findstr /i "IPv4"Test backend health:
curl http://localhost:8000/healthTest network access (from same computer):
Open browser: http://10.225.126.40:3000
- Check both servers are running - Look at terminal windows
- Check firewall - Temporarily disable to test
- Check network - Make sure devices are on same Wi-Fi
- Check IP address - Run
ipconfigto verify current IP - Check ports - Make sure nothing else is using ports 3000 or 8000