Troubleshooting
Networking Issues
Troubleshoot connectivity, reverse proxy, and WebSocket problems.
Solution:
- Check that milmil is listening on
0.0.0.0, not127.0.0.1(localhost only) - Check firewall rules — ports 3000 (web) and 8080 (API) must be open
- Try accessing via IP address (e.g.
http://192.168.1.100:3000) - In Docker, ensure ports are mapped with
-p 3000:3000 -p 8080:8080
Common causes:
- milmil services not running — check with
docker ps - Wrong upstream port in proxy config
- Proxy trying HTTPS to upstream when milmil only serves HTTP
Solution: Verify services are running, then check proxy error logs (/var/log/nginx/error.log for Nginx).
Symptoms: Danmaku not loading, notifications not updating in real-time.
Solution:
- Ensure your reverse proxy passes WebSocket upgrade headers — see Reverse Proxy
- Check that both
/wsand/api/paths have WebSocket support configured - Some CDNs (Cloudflare free tier) have WebSocket limitations — check your CDN settings
Cause: The API and frontend are on different domains or ports without proper CORS headers.
Solution:
- Use a reverse proxy to serve both frontend and API under the same domain (recommended)
- If running separately, milmil's API sets CORS headers automatically based on the
CORS_ORIGINenvironment variable
Solution:
- Check that port
42069(or your configuredTORRENT_LISTEN_PORT) is open and port-forwarded on your router - DHT needs time to bootstrap on first run — wait a few minutes
- Check if your ISP blocks BitTorrent traffic
- In Docker, the torrent port must be mapped:
-p 42069:42069/tcp -p 42069:42069/udp