Jellyfin Forum
SOLVED: Can't connect with local server set up on hotspot - 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: Can't connect with local server set up on hotspot (/t-solved-can-t-connect-with-local-server-set-up-on-hotspot)



Can't connect with local server set up on hotspot - Midoriya_04 - 2023-10-29

I've sucessfully set everything up, web-ui is working fine but am not able to connect it via android app. 
server is hosted on my laptop which I'm using as hotspot since wifi isn't great in my room.
Laptop details:
OS: Fedora 38
Jellyfin version: Jellyfin.Server 10.8.11.0

I have two hostnames:

Code:
~
❯ hostname -I
172.26.41.98 10.42.0.1

Tried both and neither worked. Neither the below one
Code:
~
❯ ifconfig | grep "inet " | grep -v 127.0.0.1
        inet 172.26.41.98  netmask 255.255.252.0  broadcast 172.26.43.255
        inet 10.42.0.1  netmask 255.255.255.0  broadcast 10.42.0.255

Would really appreciate some help.


RE: Can't connect with local server set up on hotspot - Midoriya_04 - 2023-10-29

Here's output of netstat if it matters
[code]
~
❯ netstat -ano | rg "8096"
tcp 0 0 0.0.0.0:8096 0.0.0.0:* LISTEN off (0.00/0/0)
tcp 0 0 127.0.0.1:8096 127.0.0.1:38096 ESTABLISHED off (0.00/0/0)
tcp 0 0 127.0.0.1:8096 127.0.0.1:38072 ESTABLISHED off (0.00/0/0)
tcp 0 0 127.0.0.1:8096 127.0.0.1:38092 ESTABLISHED off (0.00/0/0)
tcp 0 0 127.0.0.1:39294 127.0.0.1:8096 TIME_WAIT timewait (44.10/0/0)
tcp 0 0 127.0.0.1:49164 127.0.0.1:8096 ESTABLISHED keepalive (547.76/0/0)
tcp 0 0 127.0.0.1:8096 127.0.0.1:38068 ESTABLISHED off (0.00/0/0)
tcp 0 0 127.0.0.1:38096 127.0.0.1:8096 ESTABLISHED keepalive (8.94/0/0)
tcp 0 0 127.0.0.1:8096 127.0.0.1:49164 ESTABLISHED off (0.00/0/0)
tcp 0 0 127.0.0.1:38092 127.0.0.1:8096 ESTABLISHED keepalive (0.45/0/0)
tcp 0 0 127.0.0.1:38068 127.0.0.1:8096 ESTABLISHED keepalive (4.84/0/0)
tcp 0 0 127.0.0.1:38082 127.0.0.1:8096 ESTABLISHED keepalive (8.94/0/0)
tcp 0 0 127.0.0.1:8096 127.0.0.1:38082 ESTABLISHED off (0.00/0/0)
tcp 0 0 127.0.0.1:8096 127.0.0.1:38070 TIME_WAIT timewait (7.13/0/0)
tcp 0 0 127.0.0.1:38072 127.0.0.1:8096 ESTABLISHED keepalive (8.94/0/0)
[\code]


RE: Can't connect with local server set up on hotspot - TheDreadPirate - 2023-10-29

Where did you access the web-ui from? From the host running Jellyfin? If so, I'm assuming you used "http://localhost:8096"?

Did you open port 8096 in your firewall?


RE: Can't connect with local server set up on hotspot - Midoriya_04 - 2023-10-29

Yeah from the host and yep http://localhost:8096
~~I tried http://10.42.0.1:8096 but it didn't work..~~ Nvm it works too.

Yeah I opened the port using firewalld


RE: Can't connect with local server set up on hotspot - Deleted User - 2023-10-29

honestly to me it sounds like a routing problem with the hotspot

might check what gateway is set on the android device, it might not know how to route the traffic to 10.42.0.0


RE: Can't connect with local server set up on hotspot - Midoriya_04 - 2023-10-31

Gateway was same as laptop local IP: 10.42.0.1
Connecting the laptop to my mobiles hotspot and then connecting to it works fine too btw so I think everything else is properly setup..


RE: Can't connect with local server set up on hotspot - Midoriya_04 - 2023-10-31

Ok yeah figured it out. Just had to add jellyfin as a service to firewalld and force it to use a specific zone which was FedoraWorkstation for me. That did the trick ^^