Jellyfin-android: Unable to connect to server

Created on 19 Aug 2020  路  5Comments  路  Source: jellyfin/jellyfin-android

Version: 2.0.0-rc1
Flavor: Both release and debug tested

It's not possible to connect to a server within my Pixel 2 (API 30) emulator. I tried both my personal server and the demo server. Opening both in chrome or another app works. Logcat does not show anything.

image

bug

All 5 comments

Same issue when trying to connect to the local ip address too (http://192.168.1.10:8096/), so it can't be DNS

This is weird, it's working for me on both versions, and the demo server is fine as well. I'm doing an InetAdress reachability check, maybe that one fails on the Emulator? Do you have any special router or network configuration?

I cloned the repository and set some breakpoints, it looks like the isReachable function (in InetAddress) will always return false. I was able to "fix" the issue by removing that check. It will check if the server is reachable anyway using the fetchServerInfo function.

I cloned the repository and set some breakpoints, it looks like the isReachable function (in InetAddress) will always return false. I was able to "fix" the issue by removing that check. It will check if the server is reachable anyway using the fetchServerInfo function.

Ok, I thought the isReachable would be preferable since it's quicker than attempting a full request if it fails, but if it's broken on some devices/setups, might as well remove it.

Yeah, I had the same issue as I am blocking ICMP responses.
Have to allow them to use the android app.

echo "0" >  /proc/sys/net/ipv4/icmp_echo_ignore_all
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Orybon picture Orybon  路  4Comments

vegedb picture vegedb  路  6Comments

sopidos picture sopidos  路  3Comments

nielsvanvelzen picture nielsvanvelzen  路  6Comments

P-Daddy picture P-Daddy  路  6Comments