The backend server is now configured to listen on all network interfaces (0.0.0.0), which allows access from other devices on your network.
Run this command to find your local IP address:
node get-ip.jsOr manually find it:
- Windows: Open Command Prompt and run
ipconfig, look for "IPv4 Address" - Mac/Linux: Open Terminal and run
ifconfigorip addr, look for your network interface
-
On the same WiFi network: Use
http://<your-ip>:5001- Example:
http://192.168.1.100:5001
- Example:
-
From different networks: You'll need to:
- Set up port forwarding on your router (port 5001)
- Or use a tunneling service like ngrok, localtunnel, or Cloudflare Tunnel
If you want the phishing links to always use a specific URL (useful for sharing), add this to your .env file:
TRACE_PUBLIC_URL=http://your-ip-address:5001Or if using a tunnel:
TRACE_PUBLIC_URL=https://your-ngrok-url.ngrok-free.appMake sure your firewall allows incoming connections on port 5001:
-
Windows:
- Open Windows Defender Firewall
- Add an inbound rule for port 5001 (TCP)
-
Mac:
- System Preferences → Security & Privacy → Firewall
- Add an exception for Node.js or port 5001
-
Linux:
sudo ufw allow 5001/tcp
- Start the backend server:
npm run devornpm start - From another device on the same network, open:
http://<your-ip>:5001/api/health - You should see:
{"status":"ok","service":"TRACE backend","ts":...}
- "Connection refused": Check firewall settings and ensure server is running
- "Cannot reach server": Make sure both devices are on the same network
- "CORS error": The server already has CORS enabled for all origins (
*)
- Use HTTPS
- Set up proper authentication
- Use environment variables for sensitive configuration
- Consider using a reverse proxy (nginx, Caddy)