jellyfin-android icon indicating copy to clipboard operation
jellyfin-android copied to clipboard

Android APP won't connect to server when using domain

Open x0Z3ro0x opened this issue 2 years ago • 38 comments

Describe the bug

  1. Enter in my domain
  2. Get told "Tried X candidates for input, without success."

I expect the APP to connect me to my server. The domain and ports are operating properly to my knowledge as friends and myself can access it outside the network using my domain. This works on all browsers. It's only the APP in which the domain doesn't work. Trying my direct IP and port allows the APP to work, it's just the domain that doesn't work with the APP.

Logs

N/A This is on a phone. On windows everything works as intended. Would these logs still help you since the issue is on the phone and not my computer? If so I am happy to provide :)

Application version

2.4.4

Where did you install the app from?

Google Play

Device information

Samsung Galaxy S21 Ultra 5G

Android version

Android 11

Jellyfin server version

10.8.4

Which video player implementations does this bug apply to?

  • [ ] Web player (default)
  • [ ] Integrated player (ExoPlayer)
  • [ ] External player (VLC, mpv, MX Player)

x0Z3ro0x avatar Sep 13 '22 06:09 x0Z3ro0x

What happens when you open the exact same URL that you entered in the app in a browser? Does it show certificate warnings or something? How did you configure the networking? Did you use a reverse proxy? Do you have a VPN or anything?

We need some more details about your setup to help out.

nielsvanvelzen avatar Sep 13 '22 07:09 nielsvanvelzen

When using a browser everything works correctly. Both inside and outside of the network. It shows not secured due to still trying to figure out how to add my own SSL Cert.

The networking is configured to allow remote access and both http and https ports have been forwarded.

I do not use a reverse proxy. Instead I pointed the domain to my servers IP.

Yes I own a VPN however it is NOT used for the Jellyfin server.

x0Z3ro0x avatar Sep 13 '22 07:09 x0Z3ro0x

Here is a picture of the network settings to eliminate any confusion -

ImgBB Screenshot

x0Z3ro0x avatar Sep 13 '22 07:09 x0Z3ro0x

What happens when you open the exact same URL that you entered in the app in a browser? Does it show certificate warnings or something? How did you configure the networking? Did you use a reverse proxy? Do you have a VPN or anything?

We need some more details about your setup to help out.

Anything else you need?

x0Z3ro0x avatar Sep 14 '22 03:09 x0Z3ro0x

What happens when you open the exact same URL that you entered in the app in a browser? Does it show certificate warnings or something? How did you configure the networking? Did you use a reverse proxy? Do you have a VPN or anything?

We need some more details about your setup to help out.

You coming back anytime soon? Is this an issue with the APP, or something I can fix on my own? It would be nice to get this solved.

x0Z3ro0x avatar Sep 14 '22 20:09 x0Z3ro0x

Patience, please. :wink: This is most likely an issue with your setup, since the app works fine for plenty of other people.

Anyhow, logs from the phone would definitely be appreciated, since we can then see which candidates it tried and the exact error messages. Feel free to do a find & replace on the log to replace your domain with something like jellyfin.example.org. If you need assistance capturing those logs, there is a guide linked in the issue template when creating a bug report ticket.

Maxr1998 avatar Sep 15 '22 00:09 Maxr1998

I thought I was being patient when I waited for 3 days before asking if @nielsvanvelzen was going to return anytime soon. That's my fault for assuming that when Neilsvanvelzen replied it meant they were actively assisting me. I must have caught them at the start of their vacation (safe travels by the way).

The three pages of reddit and google posts I've went through suggest plenty of users are having issues using domain names on your APP. Most likely due to not having clear enough instructions on what is required from a domain to work with your APP. The domain works on every platform except your APP. Suggesting that the APP isn't resolving the domain properly, according to my domain provider.

Additionally I read your guide linked in the issue template and saw that it required the use of a command prompt which I am sure you are aware, isn't present on a phone. The issue template said you wanted client logs, not server logs. The client in this case is the phone. So is there another method of which I can provide those logs from the phone or do you want the server logs instead? Either way I am happy to provide those.

At the time of writing this I have already found other solutions to meet my needs outside of jellyfin and it's APP. However I am happy to stay and help you find out why the APP is being so finicky or at the very least get better information on what is required to use domains on your APP so that other users can have an easier, better experience in the future.

Have a great day!

x0Z3ro0x avatar Sep 15 '22 00:09 x0Z3ro0x

I have the same issue. But i am using a traefik reverse proxy.

Y0ngg4n avatar Sep 19 '22 09:09 Y0ngg4n

Yeah same issues. So, yeah it's not working fine for a lots of others peoples, it seem...

tr1p0p avatar Dec 22 '22 13:12 tr1p0p

Just use plex on a dedicated server.

On Thu, Dec 22, 2022, 8:19 AM tr1p0p @.***> wrote:

Yeah same issues. So, yeah it's not working fine for a lots of others peoples, it seem...

— Reply to this email directly, view it on GitHub https://github.com/jellyfin/jellyfin-android/issues/786#issuecomment-1362832357, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN7OXM6K7XWHCKZZHN5NZDWORIPPANCNFSM6AAAAAAQLC67WY . You are receiving this because you authored the thread.Message ID: @.***>

x0Z3ro0x avatar Dec 22 '22 15:12 x0Z3ro0x

@x0Z3ro0x I just setup this very thing today and all worked fine for me. Perhaps try disabling all https functionality and just use http (to troubleshoot this issue). I have not gotten https setup yet because my reverse proxy isn't playing nice with it. Another Idea, perhaps try using a reverse proxy such as nginx proxy manager to help some of these issues (such as SSL). Not sure if any of this will help, just trying to identify differences in your setup vs mine.

hkup859 avatar Dec 24 '22 01:12 hkup859

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

jellyfin-bot avatar Apr 23 '23 03:04 jellyfin-bot

Maybe i can help by describing how i fixed it.

I had an A record and an AAA record but i only had ipv4 set up. But i fixed it by removing the AAA record.

Y0ngg4n avatar Apr 23 '23 12:04 Y0ngg4n

Did someone find a workaround? The issue still persists.

ClemaX avatar Jun 05 '23 14:06 ClemaX

Yeah, still this issues. Also friends on other android tv ALSO have this issues.

So android app is barely usable for no reasons.

tr1p0p avatar Jun 05 '23 14:06 tr1p0p

Here is a log, attempting to connect to a Jellyfin instance behind a nginx reverse-proxy with SSL certificate, using cellular network. The instance is reachable using the webbrowser using HTTPS on port 8920.

org.jellyfin.mobile.log

ClemaX avatar Jun 05 '23 14:06 ClemaX

Here is a log, attempting to connect to a Jellyfin instance behind a nginx reverse-proxy with SSL certificate, using cellular network. The instance is reachable using the webbrowser using HTTPS on port 8920.

org.jellyfin.mobile.log

You're trying to connect to jellyfin.example.org which obviously is not a Jellyfin server so it will not be able to connect.

No valid servers found, invalid candidates were:
https://jellyfin.example.org/Failure(org.jellyfin.sdk.api.client.exception.TimeoutException: HTTP request timed out),
https://jellyfin.example.org:8096/Failure(org.jellyfin.sdk.api.client.exception.TimeoutException: HTTP request timed out),
https://jellyfin.example.org:8920/Failure(org.jellyfin.sdk.api.client.exception.TimeoutException: HTTP request timed out),
http://jellyfin.example.org/Failure(org.jellyfin.sdk.api.client.exception.TimeoutException: HTTP request timed out),
http://jellyfin.example.org:8096/Failure(org.jellyfin.sdk.api.client.exception.TimeoutException: HTTP request timed out)

nielsvanvelzen avatar Jun 05 '23 14:06 nielsvanvelzen

Sorry for the confusion, I've replaced my real hostname by jellyfin.example.org for privacy. I double checked the hostname and that is not the problem as I reach the instance using the mobile phone's web-browser (Chrome).

ClemaX avatar Jun 05 '23 14:06 ClemaX

When connecting and authenticating to the server from thr LAN using the public hostname, it worked and now it also works through the cellular network.

ClemaX avatar Jun 06 '23 12:06 ClemaX

Might be some DNS issue possibly? It seems that it was only able to resolve the IP in the internal network, and then cached it for later.

Your issue seems like a network configuration issue, or very specific edge case. A timeout usually implies that the address isn't reachable or something a firewall prevents access. Without knowing more details, it's impossible to debug this issue.

Maxr1998 avatar Jun 06 '23 13:06 Maxr1998

also having this issue,

set up is as follow:

on the DNS Server:

A record pointed to  media.myserver.com
CName  *.media.myserver.com    pointing to media.myserver.com (wildcard)

reverse proxy is set up to point jellyfin.media.myserver.com to the correct docker container that jellyfin is running in.

can connect through the phones browser using the cellular network {not connected to homes WiFi.} -> https://jellyfin.media.myserver.com cannot connect with the app using the same -> https://jellyfin.media.myserver.com

Error Messages on the app screen:


Tried 3 Candidates for input, without success.

unable to reach server:
https://jellyfin.media.myserver.com
https://jellyfin.media.myserver.com:8096
https://jellyfin.media.myserver.com:8920

No errors on Server Logs or any info in regards to the attempted failed login with the APP.

server logs show the login through browser as successful however.

TooGoooD1 avatar Jun 09 '23 07:06 TooGoooD1

I hit this today with my new phone and it seems like the problem was introduced after version 2.4.4. I was getting same message with Tried 3 Candidates for input, without success. when trying to log in with v2.5.2.

My gf's phone and my old phone were logged in, so it was very odd my new phone could reach Jellyfin via browser but not app as other devices on the same network would work fine.

When installing v2.4.4 from f-droid, I was able to log in. After that, upgrading to 2.5.2 kept the login session and seems to work without issues. So that seems to be a workaround if anybody hits this.

Ludo444 avatar Jun 12 '23 18:06 Ludo444

I also have the same issue. The setup has not been changed from the last time I successfully used the android app. Right now I can connect using Firefox android browser but the app does not work. Error message:

Tried 2 Candidates for input, without success.

croak9854 avatar Jun 17 '23 21:06 croak9854

I am blocked with this issue too.

In browser in https, it works. In android in https, it doesn't however, I make a test with http, and it does work too. So it seems linked to ssl.

crile avatar Jun 25 '23 14:06 crile

Check if you're impacted by #571.

Maxr1998 avatar Jun 25 '23 17:06 Maxr1998

I just wanted to add that I was having this issue when I had disabled the web client portion of the server component.

My setup is using nginx as a reverse proxy, so I followed the instructions found here. In my initial setup, I had disabled all parts of the nginx configuration, which involved the web client, and I had also configured the server to run without requiring the web component (--service --nowebclient). With these initial settings, I couldn't connect from the jellyfin mobile app, nor could I connect from my Roku. Only the desktop app worked.

After I removed those options and enabled the web component and settings in nginx, everything started working again.

I'm just glad I found this, rather than going down the SSL and nginx rabbit hole that I would have otherwise.

smac89 avatar Aug 26 '23 22:08 smac89

That makes sense, since the Android app simply wraps and thus requires the web client provided by the server. It doesn't bundle it's own web client anymore.

Maxr1998 avatar Aug 26 '23 22:08 Maxr1998

Adding to this as this seems to be an ongoing issue. Perhaps the app is doing everything it is supposed to and it's the actual docker image itself.

Initial set back up, I was not able to connect to my server via the JF app on android phone or other tablets when using mobile data off my personal home network.

----delete containter----

Redeploy, pulled image agin, and worked with no issues. Only while setting itself up completely and scanning media folders. When done, tried adding another device from outside network...same error others are receiving.

-----delete container, republican and deploy---- Same error.

During each attempt, clean docker and the initial support folders built. Ports have been directly forwarded to confirm if it was a porting issue.

Note. While in my personal network, able to connect through the android app with no issues. UPNP/DLNA is not on as it doesn't always work. All setup, deployments were the same.

I've attempt this using the beta JF version of the app and official, installed through the Play Store. Web interface works with no issues anywhere you're at.

cjax82 avatar Sep 05 '23 15:09 cjax82

+1, I too am getting this on my server

RobotRoss avatar Sep 23 '23 22:09 RobotRoss

+1, also has this issue, does anybody has found a workaround ?

darkkhaine avatar Sep 30 '23 08:09 darkkhaine