A project to set up a media server on a small computer.
If qBittorrent is not accessible after restart, run this command to configure it to bind to all IPv4 addresses on the wg0 interface:
docker compose exec qbittorrent sed -i 's/Session\\InterfaceAddress=.*/Session\\InterfaceAddress=0.0.0.0/' /config/config/qBittorrent.conf && docker compose restart qbittorrentThis sets:
- Network interface:
wg0(WireGuard) - Optional IP to bind to:
0.0.0.0(all IPv4 addresses)
When set to 0.0.0.0, qBittorrent will automatically bind to whatever IPv4 address wg0 receives, regardless of Pi restarts or network changes.
- PIA assigns a new IP to
wg0each time the container restarts - Instead of chasing a moving target with IP updates, bind to
0.0.0.0(all IPs) on the interface - qBittorrent automatically uses the current IP without manual intervention
Check within container:
docker compose exec qbittorrent grep "Session\\Interface" /config/config/qBittorrent.confShould show:
Session\Interface=wg0
Session\InterfaceAddress=0.0.0.0
Session\InterfaceName=wg0
Access WebUI at: http://localhost:8080