jellyfin / jellyfin-android

Android Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
1.57k stars 251 forks source link

Discovery not finding all servers #1510

Open brianjmurrell opened 5 days ago

brianjmurrell commented 5 days ago

Describe the bug

Using jellyfin-android 0.17.9 release, I click on the server button at the Who's watching page (where you choose a user to log into or a server to connect to) and it shows me the same single server under Saved servers and Discovered servers even though there is a discovered server that is not being displayed (pc.interlinx.bc.ca). I have confirmed that the missing server is receiving the discovery broadcast and is replying to it:

Capturing on 'enp2s0'
    1 0.000000000 0.000000000 0.000000000 10.75.22.183 → 255.255.255.255 ADwin Config 

0000  ff ff ff ff ff ff 20 1f 3b 2d 04 87 81 00 00 01   ...... .;-......
0010  08 00 45 00 00 32 9b a7 40 00 40 11 7e 12 0a 4b   ..E..2..@.@.~..K
0020  16 b7 ff ff ff ff c1 89 1c bf 00 1e 9b 67 77 68   .............gwh
0030  6f 20 69 73 20 4a 65 6c 6c 79 66 69 6e 53 65 72   o is JellyfinSer
0040  76 65 72 3f                                       ver?

    2 0.000383884 0.000383884 0.000383884   10.75.22.1 → 10.75.22.183 UDP 7359 → 49545 Len=136

0000  20 1f 3b 2d 04 87 fc aa 14 6c 51 ab 81 00 00 01    .;-.....lQ.....
0010  08 00 45 00 00 a4 06 58 40 00 40 11 f2 a3 0a 4b   ..E....X@.@....K
0020  16 01 0a 4b 16 b7 1c bf c1 89 00 90 41 ef 7b 22   ...K........A.{"
0030  41 64 64 72 65 73 73 22 3a 22 68 74 74 70 73 3a   Address":"https:
0040  2f 2f 70 63 2e 69 6e 74 65 72 6c 69 6e 78 2e 62   //pc.interlinx.b
0050  63 2e 63 61 3a 38 39 32 30 22 2c 22 49 64 22 3a   c.ca:8920","Id":
0060  22 39 62 65 31 34 64 36 31 63 36 34 62 34 35 32   "9be14d61c64b452
0070  65 62 30 66 65 33 38 61 33 39 64 32 30 32 32 61   eb0fe38a39d2022a
0080  38 22 2c 22 4e 61 6d 65 22 3a 22 70 63 2e 69 6e   8","Name":"pc.in
0090  74 65 72 6c 69 6e 78 2e 62 63 2e 63 61 22 2c 22   terlinx.bc.ca","
00a0  45 6e 64 70 6f 69 6e 74 41 64 64 72 65 73 73 22   EndpointAddress"
00b0  3a 6e 75 6c 6c 7d                                 :null}

What is unclear is why the jellyfin Android client is not displaying the above server in the Discovered servers list.

Logs

11-16 19:08:18.322 28500 28500 I org.jellyfin.sdk.api.ktor.KtorClient: GET https://videoserver.interlinx.bc.ca/Users/Public
11-16 19:08:18.344 28500 28500 I org.jellyfin.sdk.api.ktor.KtorClient: GET https://videoserver.interlinx.bc.ca/Users/Public
11-16 19:08:22.142 28500 16344 I org.jellyfin.sdk.discovery.LocalServerDiscovery: Starting discovery with timeout of 500ms
11-16 19:08:22.144 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Discovering via /255.255.255.255
11-16 19:08:22.144 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Finished sending broadcast, listening for responses
11-16 19:08:22.144 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:22.147 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Received message "{"Address":"https://videoserver.interlinx.bc.ca","Id":"9be14d61c64b452eb0fe38a39d2022a8","Name":"videoserver.interlinx.bc.ca","EndpointAddress":null}"
11-16 19:08:22.148 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:22.148 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Received message "{"Address":"https://pc.interlinx.bc.ca:8920","Id":"9be14d61c64b452eb0fe38a39d2022a8","Name":"pc.interlinx.bc.ca","EndpointAddress":null}"
11-16 19:08:22.148 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:22.649 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:23.150 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:23.653 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:24.155 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:24.658 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:25.161 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:25.664 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:26.168 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:26.671 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:27.173 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:27.675 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:28.177 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:28.680 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: Reading reply...
11-16 19:08:29.182 28500 16344 D org.jellyfin.sdk.discovery.LocalServerDiscovery: End

Application version

0.17.9

Where did you install the app from?

Google Play

Device information

Chromecast with Google TV

Android version

Android TV OS version 12

Jellyfin server version

10.10.1

Which video player implementations does this bug apply to?