SOLVED: Local Network Access through Proxy - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access) +---- Thread: SOLVED: Local Network Access through Proxy (/t-solved-local-network-access-through-proxy) |
Local Network Access through Proxy - contabs - 2024-10-09 So for my setup, I have Jellyfin and Nginx Proxy Manager in a user-defined docker bridge on an Ubuntu 24.04 server. I have the port-forwarding setup so that I can reach from my domain name when outside the LAN, but when I am on the LAN the domain I cannot access it through the domain name through any device other than my desktop (which buffers heavily), nor the IP address because of the user-defined bridge network. I tried setting up a MACVLAN network through docker but my WAP won't support it. Is there a way that I can access my server internally? All suggestions are welcome, including switching proxies/hosting options if necessary, I'm open to anything. Edit: I do have control of my local DNS server through AdGuard so I can try a DNS entry, but only once I can access it from the IP locally. RE: Local Network Access through Proxy - TheDreadPirate - 2024-10-09 I'm assuming that Nginx Proxy Manger is using host networking or using "port" to publish ports. And your jellyfin container is using "expose". Is that a correct assumption? Or are both using "ports" to publish their ports to the host interface? RE: Local Network Access through Proxy - contabs - 2024-10-10 Looking at my docker-config for jellyfin, I didn't specify a port, however it does it automatically is how it got 8096 assigned. When I run 'docker ps', it shows that the jellyfin container has 8096 attached to it, and it specifies 8096 while inspecting the container. For NPM, I did specify "ports" in the compose file. RE: Local Network Access through Proxy - TheDreadPirate - 2024-10-10 So the container is using port 8096, but that is not pushed to the host's interface without the "ports" section in your compose. Without "ports", only other containers on the same bridge will be able to access Jellyfin, which is OK if you are using NPM for all connections and NPM is on the same bridge network. Having said that, I do believe you at least need "expose" on your jellyfin container so that NPM can connect on that port. Code: jellyfin-testing: RE: Local Network Access through Proxy - contabs - 2024-10-11 Okay so after a few attempts with expose it worked with 'ports'. For anyone in the future who has this issue, NPM is still forwarding to 8096, even though it assigned me a random ephemeral port bc I forgot to specify lol. Here is my redacted docker-compose.yml: services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin user: 1000:1000 network_mode: '<user defined bridge name>' ports: - 8096 # Unless you specify with port:port it will assign a random port that forwards to 8096 volumes: - /path/to/configconfig - /path/to/cachecache - /path/to/mediamedia restart: 'unless-stopped' Thanks for the help! |