Jellyfin Forum
ZeroTier does not connect to JellyFin - 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: ZeroTier does not connect to JellyFin (/t-zerotier-does-not-connect-to-jellyfin)

Pages: 1 2 3


ZeroTier does not connect to JellyFin - mightyenigma - 2024-06-20

I have a problem connecting to JellyFin over ZeroTier. I know this is a JellyFin support forum, not ZeroTier, but I need to resolve this to use the remote access feature.

Steps to reproduce:
  1. Installed JellyFin server for Windows on my host machine at home, which is connected to my WiFi router which is connected to our ISP modem.
  2. Installed JellyFin client on Android phone, connected to my home host machine.
  3. Test playing movies to the Android client. Works great.
  4. Enable Remote Access in the Jellyfin server.
  5. Turn off phone's WiFi so it has to connect from outside the home network.
  6. ZeroTier is already set up between my host machine and Android phone.
  7. Activate ZeroTier on my Android phone
  8. Test connection via another app like FileManager+ or Moonlight Game Streaming. Works fine.
  9. Try to log in to the same IP address but Jellyfin port in the Android phone's Jellyfin client app. Did this by typing http://xx.xxx.xx.xxx:8096 into the Host field on the Connect to Server page of the Android Jellyfin client, then tap the Connect button below that. Expected outcome: Connect and use successfully just as I did while on WiFi. Actual outcome: error message that says "Tried 2 candidates for input, without success. Unable to reach server: https://xx.xxx.xx.xxx:8096    http://xx.xxx.xx.xxx:8096
    xx.xxx.xx.xxx is the IP address copied from FileManager+ app on my Android phone which does give me SMB access to my shared folders on my host machine's Windows 10 file system.

Am I doing something wrong, or do I need to take further steps that I didn't have to with the other two apps, FileManager+ and Moonlight Game Streaming?


RE: ZeroTier does not connect to JellyFin - TheDreadPirate - 2024-06-20

Is Jellyfin listening on the zerotier interface?


RE: ZeroTier does not connect to JellyFin - mightyenigma - 2024-06-21

(2024-06-20, 10:26 PM)TheDreadPirate Wrote: Is Jellyfin listening on the zerotier interface?

My host machine is connecting to the client device or vice versa, over zerotier, if that's what you mean. I don't see anything about either Jellyfin or the apps that work, in my Zerotier admin page.


RE: ZeroTier does not connect to JellyFin - mightyenigma - 2024-06-21

(2024-06-20, 10:26 PM)TheDreadPirate Wrote: Is Jellyfin listening on the zerotier interface?

This is the ZeroTier interface after I log in to https://my.zerotier.com/network , first page:
   


Here is the page that goes to when I click on the Network I have been using for the other apps to reach my home server. This is the Members section. As you can see, it is about the device but not the specific apps:
   

Other sections are Settings:
   


And Flow Rules which looks like this:
Code:
#
# This is a default rule set that allows IPv4 and IPv6 traffic but otherwise
# behaves like a standard Ethernet switch:
drop
not ethertype ipv4
and not ethertype arp
and not ethertype ipv6
;
# Accept anything else. This is required since default is 'drop':
accept;
# For more information on how rules work visit: https://docs.zerotier.com/rules/


And  Administrators which apparently you have to upgrade (probably to a paid plan) to use.


I'm not sure where to to look for anything "listening" to Jellyfin.

I am open to using a different free solution as well if I can get more help that way. I just thought I might as well use ZeroTier since it works well enough for my other things like Moonlight Game Streaming and FileManager+ on my LG V30 Android phone and TotalCommander SMB plugin on my Firestick.

My host is running Windows 10.
IPv4
Server version
10.9.6
Web version
10.9.6
Build version
10.9.6

There appears to be no logging on the server about my attempts to connect via ZeroTier, so I think it's not rejecting the connection, it just never arrives from the phone.


RE: ZeroTier does not connect to JellyFin - TheDreadPirate - 2024-06-21

In Jellyfin's log it will say what interfaces it binds to. From my log.

Code:
[2024-06-19 20:39:32.943 +00:00] [INF] Filtered interface addresses: ["127.0.0.1", "192.168.1.3", "172.16.100.1", "::1", "<Public IPv6 Address 1>", "<Public IPv6 Address 2>", "fe80::a236:bcff:fe35:7cb7%2", "fe80::42:6cff:fe1f:262a%12"]
[2024-06-19 20:39:32.944 +00:00] [INF] Bind Addresses ["::"]
......
[2024-06-19 20:39:35.156 +00:00] [INF] Kestrel is listening on "all interfaces"

If Jellyfin isn't picking up or listening on the zerotier interface, or there is no bridge between interfaces, then Jellyfin won't receive the traffic.

You can tell Jellyfin to specifically listen on multiple interfaces.


RE: ZeroTier does not connect to JellyFin - mightyenigma - 2024-06-21

(2024-06-21, 03:13 PM)TheDreadPirate Wrote: In Jellyfin's log it will say what interfaces it binds to.  From my log.

Code:
[2024-06-19 20:39:32.943 +00:00] [INF] Filtered interface addresses: ["127.0.0.1", "192.168.1.3", "172.16.100.1", "::1", "<Public IPv6 Address 1>", "<Public IPv6 Address 2>", "fe80::a236:bcff:fe35:7cb7%2", "fe80::42:6cff:fe1f:262a%12"]
[2024-06-19 20:39:32.944 +00:00] [INF] Bind Addresses ["::"]
......
[2024-06-19 20:39:35.156 +00:00] [INF] Kestrel is listening on "all interfaces"

If Jellyfin isn't picking up or listening on the zerotier interface, or there is no bridge between interfaces, then Jellyfin won't receive the traffic.

You can tell Jellyfin to specifically listen on multiple interfaces.

My log shows Kestrel listening on 0.0.0.0 which I assume is all interfaces?

[2024-06-21 13:47:21.298 -06:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["192.168.50.130", "192.168.56.1", "xx.xxx.xx.xxx", "127.0.0.1"]

The xx.xxx.xx.xxx address is the one that works on all my other apps to connect to my host PC via ZeroTier. In other words, I use that IP address to connect to 192.168.50.130 from outside the house, when ZeroTier is turned on. It's there in the filtered interface addresses.

[2024-06-21 13:47:28.774 -06:00] [INF] [1] Main: Kestrel is listening on "0.0.0.0"

What do I need to change, and how do I change it?


RE: ZeroTier does not connect to JellyFin - TheDreadPirate - 2024-06-21

Click start > type Resource Monitor > click on the Network tab > expand the Listening ports table

Find jellyfin.exe on port 8096. What is the firewall status and what does it say about the address it is bound to?


RE: ZeroTier does not connect to JellyFin - mightyenigma - 2024-06-21

(2024-06-21, 08:17 PM)TheDreadPirate Wrote: Click start > type Resource Monitor > click on the Network tab > expand the Listening ports table

Find jellyfin.exe on port 8096.  What is the firewall status and what does it say about the address it is bound to?

It says IPv4 unspecified
Firewall is Allowed, restricted.

(attached screenshot)


RE: ZeroTier does not connect to JellyFin - TheDreadPirate - 2024-06-21

Should be unrestricted. Make sure that jellyfin.exe is allowed in Windows Firewall or open port 8096 specifically.


RE: ZeroTier does not connect to JellyFin - mightyenigma - 2024-06-21

(2024-06-21, 09:36 PM)TheDreadPirate Wrote: Should be unrestricted.  Make sure that jellyfin.exe is allowed in Windows Firewall or open port 8096 specifically.

Okay I will try that. So maybe it is not the IP address but the port through which Zerotier is connecting ...