Can't access qbittorrent webgui using docker compose

Here is my docker-compose file (from qbittorrent - LinuxServer.io)

---
services:
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent
    environment:
      - PUID=1001
      - PGID=100
      - TZ=America/Chicago
      - WEBUI_PORT=8080
      - TORRENTING_PORT=6881
    volumes:
      - CHANGE_TO_COMPOSE_DATA_PATH/qbittorrent/config:/config
      - /srv/dev-disk-by-uuid-30ff5511-3b43-41cb-bd13-381d590402c5/downloads:/downloads
    ports:
      - 8080:8080
      - 6881:6881
      - 6881:6881/udp
    restart: unless-stopped

Here is the log:

qbittorrent  | [migrations] started
qbittorrent  | [migrations] no migrations found
qbittorrent  | ───────────────────────────────────────
qbittorrent  | 
qbittorrent  |       ██╗     ███████╗██╗ ██████╗
qbittorrent  |       ██║     ██╔════╝██║██╔═══██╗
qbittorrent  |       ██║     ███████╗██║██║   ██║
qbittorrent  |       ██║     ╚════██║██║██║   ██║
qbittorrent  |       ███████╗███████║██║╚██████╔╝
qbittorrent  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
qbittorrent  | 
qbittorrent  |    Brought to you by linuxserver.io
qbittorrent  | ───────────────────────────────────────
qbittorrent  | 
qbittorrent  | To support LSIO projects visit:
qbittorrent  | https://www.linuxserver.io/donate/
qbittorrent  | 
qbittorrent  | ───────────────────────────────────────
qbittorrent  | GID/UID
qbittorrent  | ───────────────────────────────────────
qbittorrent  | 
qbittorrent  | User UID:    1001
qbittorrent  | User GID:    100
qbittorrent  | ───────────────────────────────────────
qbittorrent  | Linuxserver.io version: 4.6.5-r0-ls341
qbittorrent  | Build-date: 2024-07-14T06:55:57+00:00
qbittorrent  | ───────────────────────────────────────
qbittorrent  |     
qbittorrent  | [custom-init] No custom files found, skipping...
qbittorrent  | WebUI will be started shortly after internal preparations. Please wait...
qbittorrent  | 
qbittorrent  | ******** Information ********
qbittorrent  | To control qBittorrent, access the WebUI at: http://localhost:8080
qbittorrent  | 
qbittorrent  | The WebUI administrator username is: admin
qbittorrent  | The WebUI administrator password was not set. A temporary password is provided for this session: wvtvCISpf
qbittorrent  | You should set your own password in program preferences.
qbittorrent  | Connection to localhost (::1) 8080 port [tcp/http-alt] succeeded!
qbittorrent  | [ls.io-init] done.

tested from commandline with: wget -qO- localhost:8080
Also tested via browers.

No bueno.

FYI:VERY new to this, my plex container runs fine, so if you can explain with a direct code example to resolve this I’d be most appreciative.

Thank you in advance!

Have you tried http://host.ip:8080 rather than localhost?

The wget command when I use localhost:8080 – it hangs and I have to ctrl-c
when I use host.ip:8080 it doesn’t hang, it just returns the same as when I use localhost:32400 for plex.
That confuses me even more why it works one way and not the other for qbittorrent when both work for plex.

The wget command from the host itself (via ssh) as well as using http//hostname:8080 or the localipaddress:8080 via browser are all working on the plex container. So I’m at a loss here.

I should also mention the plex container thats working fine is also from linuxserver.io using same linux user PUID/PGID…

I tried this lsof -i -P -n | grep LISTEN

Plex\x20M  3478         appuser   10u  IPv6  15599      0t0  TCP *:32400 (LISTEN)
Plex\x20M  3478         appuser   11u  IPv4  15601      0t0  TCP 127.0.0.1:32401 (LISTEN)
Plex\x20S  3670         appuser    4u  IPv4  20793      0t0  TCP 127.0.0.1:42679 (LISTEN)
Plex\x20T  3754         appuser   10u  IPv4  20797      0t0  TCP 127.0.0.1:32600 (LISTEN)
docker-pr 18148            root    4u  IPv4  54109      0t0  TCP *:6881 (LISTEN)
docker-pr 18155            root    4u  IPv6  55369      0t0  TCP *:6881 (LISTEN)
docker-pr 18180            root    4u  IPv4  52919      0t0  TCP *:8080 (LISTEN)
docker-pr 18186            root    4u  IPv6  54173      0t0  TCP *:8080 (LISTEN)```

For some reason Plex shows up as Plex and using appuser (PUID 1001, PGID 100) but I’ve since tried dokuwiki and also qbittorrent and their containers show up as “docker-pr” and ‘root’ as the user and no matter what ports I try, they are inaccessable. So far only plex works lol. On debian bullseye with docker-compose this went up quickly for me so I’m at a total loss whats going on here. Any advice?

It turns out plex runs in host mode but qbittorrent runs in bridge mode. When I run qbittorrent in host mode, I can access it just fine. When it runs in the default bridge, or a user bridge, again I can’t access it. Any idea why I can’t access it in a bridge network?