2024-09-13, 02:05 PM
Hello again,
This is a lengthy post, and hopefully I make sense. After an afternoon of tinkering (and asking AI & the docs) I was able to set up Jellyfin in a way that was accessible via my phone as well as another desktop at home, so success, for the most part, as you'll read below.
I had UFW enabled and had allowed port 8096 on the server. What I realized was that no port was specified in the shell script I had used to run Jellyfin in a Docker container. I don't know if this was exactly the issue, but after rewriting the shell script and adding -p (published 8096:8096) and also specifying the bridge connection, I had success.
Once I had set that up I was able to log in via another desktop, however I was still stumped by my phone. What I discovered was that if I turned the VPN off on my phone, it connected no problem. I suspect that might have been a major issue in my former iterations. What I don't understand is that I use the same VPN on the desktop, and it still connected to the server. I haven't done anything to set up reverse proxy or to use a DNS address, but that will likely be my next project, at some point.
I've gained a lot of new info about networking and applications and shell scripts (which was half the goal of this project!) and will keep searching for why the VPN blocks it. Any ideas as to why the phone's VPN would block the access to the server, and not the desktop's VPN connection? They are both connected to our home network via the VPN. If you need more info, let me know.
Here is the successful shell script minus username:
#!/bin/bash
docker run -d \
--name jellyfin \
--user 1000:1000 \
--net=bridge \
--publish 8096:8096 \
--volume /home/user/jellyfin/configconfig \
--volume /home/user/jellyfin/cachecache \
--mount type=bind,source=/home/user/jellyfin/media,target=/media \
--restart=unless-stopped \
jellyfin/jellyfin
Thank you!
This is a lengthy post, and hopefully I make sense. After an afternoon of tinkering (and asking AI & the docs) I was able to set up Jellyfin in a way that was accessible via my phone as well as another desktop at home, so success, for the most part, as you'll read below.
I had UFW enabled and had allowed port 8096 on the server. What I realized was that no port was specified in the shell script I had used to run Jellyfin in a Docker container. I don't know if this was exactly the issue, but after rewriting the shell script and adding -p (published 8096:8096) and also specifying the bridge connection, I had success.
Once I had set that up I was able to log in via another desktop, however I was still stumped by my phone. What I discovered was that if I turned the VPN off on my phone, it connected no problem. I suspect that might have been a major issue in my former iterations. What I don't understand is that I use the same VPN on the desktop, and it still connected to the server. I haven't done anything to set up reverse proxy or to use a DNS address, but that will likely be my next project, at some point.
I've gained a lot of new info about networking and applications and shell scripts (which was half the goal of this project!) and will keep searching for why the VPN blocks it. Any ideas as to why the phone's VPN would block the access to the server, and not the desktop's VPN connection? They are both connected to our home network via the VPN. If you need more info, let me know.
Here is the successful shell script minus username:
#!/bin/bash
docker run -d \
--name jellyfin \
--user 1000:1000 \
--net=bridge \
--publish 8096:8096 \
--volume /home/user/jellyfin/configconfig \
--volume /home/user/jellyfin/cachecache \
--mount type=bind,source=/home/user/jellyfin/media,target=/media \
--restart=unless-stopped \
jellyfin/jellyfin
Thank you!