This guide explains how to run TaskFlow on your local network so multiple devices can access it.
-
Start the Backend Server:
cd server npm install npm start -
Start the Frontend (in another terminal):
npm install npm run dev
-
Find Your Server IP:
- Windows: Open Command Prompt and run
ipconfig - Mac/Linux: Open Terminal and run
ifconfigorip addr - Look for your local network IP (usually starts with 192.168.x.x or 10.x.x.x)
- Windows: Open Command Prompt and run
-
Access from Other Devices:
- Open browser on any device on the same network
- Go to:
http://YOUR_SERVER_IP:8080 - Example:
http://192.168.1.100:8080
- Frontend (Vite): Port 8080
- Backend (Express): Port 3001
The app automatically detects your network setup:
- When accessed via
localhost→ connects tolocalhost:3001 - When accessed via IP address → connects to
SAME_IP:3001
If you need to specify a custom server IP:
-
Create a
.envfile in the project root:VITE_SERVER_IP=192.168.1.100 -
Restart the frontend development server
Make sure these ports are open in your firewall:
- Port 8080 (Frontend)
- Port 3001 (Backend)
netsh advfirewall firewall add rule name="TaskFlow Frontend" dir=in action=allow protocol=TCP localport=8080
netsh advfirewall firewall add rule name="TaskFlow Backend" dir=in action=allow protocol=TCP localport=3001sudo ufw allow 8080
sudo ufw allow 3001- Check your IP: Make sure you're using the correct IP address
- Check firewall: Ensure ports 8080 and 3001 are open
- Check network: Make sure all devices are on the same WiFi/network
- Check server logs: The backend will show the correct IP address when it starts
- Check backend logs: Look for any Python or database errors
- Check browser console: Open Developer Tools → Console for frontend errors
- Test backend directly: Visit
http://YOUR_IP:3001/api/healthin browser
This setup is intended for local network use only. Do not expose these ports to the internet without proper security measures.
When building the mobile app, the configuration will automatically use your network IP. Make sure the server is running when you build and test the mobile app.