• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Networking & Access SOLVED: Android App not connecting anymore

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    SOLVED: Android App not connecting anymore

    bkl842
    Offline

    Junior Member

    Posts: 7
    Threads: 0
    Joined: 2024 Mar
    Reputation: 1
    Country:United States
    #11
    2024-03-23, 06:48 PM
    Until a few days ago, I was unable to connect remotely to my server with the Android tv app, although the web interface worked as did the iOS app. I was also able to connect with the Kodi plugin, but it was very slow to start playback (a minute 30 seconds+) or to list directory contents. I opened an issue on GitHub, and one of the suggestions was to disable http/2 and gzip. After doing that, the lag on Kodi was resolved, and I can also connect remotely with the Android tv app. Even after re-enabling http/2 and gzip. Not sure why it worked, but it’s worth a try.
    holger_kuehn
    Offline

    Junior Member

    Posts: 11
    Threads: 2
    Joined: 2024 Mar
    Reputation: 0
    Country:Germany
    #12
    2024-03-25, 10:03 PM
    Hi,

    have done some more digging and testing. This seems to be caused by one or more of those headers, will narrow them down tomorrow (just a quik note today):

    Code:
        RequestHeader set X-Forwarded-Proto 'https' env=HTTPS
        Header always set Strict-Transport-Security "max-age=15552000; preload"
        Header always set X-Content-Type-Options nosniff
        Header always set X-Robots-Tag none
        Header always set X-XSS-Protection "1; mode=block"
        Header always set X-Frame-Options "SAMEORIGIN"
        Header always set Referrer-Policy "same-origin"
        Header always set Content-Security-Policy "default-src 'none'; script-src 'none'; object-src 'none'; base-uri 'self' dachs.blog"
        Header always set Feature-Policy "geolocation 'self'; midi 'self'; sync-xhr 'self'; microphone 'self'; camera 'self'; magnetometer 'self'; gyroscope 'self'; speaker 'self'; fullscreen 'self'; payment 'self'"

    I suspect the Content-Security-Policy, as it should block scripts, will update as soon as I've tested this.
    holger_kuehn
    Offline

    Junior Member

    Posts: 11
    Threads: 2
    Joined: 2024 Mar
    Reputation: 0
    Country:Germany
    #13
    2024-03-26, 06:58 PM
    For reference, the Android App is blocked from connecting when the proxy adds a Content-Security-Policy-Header that blocks outside sources and those are used by skins for example. This was the case here as I used Ultrachromic skin via Skin Manager.
    The following virtual host is working as expected, and honoring most best practices from pentest-tools.com:

    Code:
    <VirtualHost *:443>
        ServerName domain.tld
        DocumentRoot "${SRVROOT}/htdocs/jellyfin"
        ErrorLog "${SRVROOT}/logs/jellyfin_error.log"
        CustomLog "${SRVROOT}/logs/jellyfin_access.log" combined
        ProxyPreserveHost On
        ProxyPass "/.well-known/" "!"
       
        # Tell Jellyfin to forward that requests came from TLS connections
        RequestHeader set X-Forwarded-Proto "https"
        RequestHeader set X-Forwarded-Port "443"

        ProxyPass "/socket" "ws://localhost:8096/socket"
        ProxyPassReverse "/socket" "ws://localhost:8096/socket"
        ProxyPass "/" "http://localhost:8096/"
        ProxyPassReverse "/" "http://localhost:8096/"

        SSLEngine on
        SSLCertificateFile "${SRVROOT}/conf/ssl.crt/server.crt"
        SSLCertificateKeyFile "${SRVROOT}/conf/ssl.key/server.key"
        SSLCertificateChainFile "${SRVROOT}/conf/ssl.fullchain/fullchain.pem"
        Protocols h2 http/1.1

        ### Add headers ###
        RequestHeader set X-Forwarded-Proto 'https' env=HTTPS
        Header always set Strict-Transport-Security "max-age=15552000; preload"
        Header always set X-Content-Type-Options nosniff
        Header always set X-Robots-Tag none
        Header always set X-XSS-Protection "1; mode=block"
        Header always set X-Frame-Options "SAMEORIGIN"
        Header always set Referrer-Policy "same-origin"

        Header always set Content-Security-Policy "default-src 'self' dachs.blog; script-src 'self' 'unsafe-inline' dachs.blog www.gstatic.com/cv/js/; style-src 'self' 'unsafe-inline' dachs.blog cdn.jsdelivr.net/gh/CTalvio ctalvio.github.io fonts.googleapis.com/css2; connect-src 'self' dachs.blog; object-src 'none'; worker-src 'self' dachs.blog; frame-ancestors 'self' dachs.blog; base-uri 'self' dachs.blog"

        Header always set Feature-Policy "geolocation 'self'; midi 'self'; sync-xhr 'self'; microphone 'self'; camera 'self'; magnetometer 'self'; gyroscope 'self'; speaker 'self'; fullscreen 'self'; payment 'self'"

        RewriteEngine on
        RewriteRule ^/web/robots.txt https://domain.tld/robots.txt [L,R=301]
        RewriteRule ^/.well-known/security.txt https://domain.tld/.well-known/security.txt [L,R=301]
    </VirtualHost>
    beankylla
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Jul
    Reputation: 0
    #14
    2024-07-13, 09:59 PM (This post was last modified: 2024-07-13, 10:00 PM by beankylla. Edited 1 time in total.)
    Hello,

    I am experiencing a similar issue with a slightly different setup:

    I am running jellyfin in docker behind nginx proxy manager.

    [*]From the browser it always works flawlessly regardless of the origin

    [*]with the android app:
    • From my home i can always connect with ip + port no issues
    • From my home connecting with Domain name does not work, EXCEPT when i connect to a  VPN, then the connection goes through and then i can disconnect from the vpn and it keeps working (i fail to understand the logic, maybe issue is only with the login?)
    • From other places: it refuses to connect EXCEPT when i use the same VPN as at Home

    Once successfully connected app works OK, even from a location that i could not connect from

    I experience a different behavior with the flatpak app: connects OK from my computer whereas the androidTV box will refuse to connect.

    Would be happy to provide any elements that would help
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #15
    2024-07-13, 10:25 PM
    Can you share screenshots of all the tabs for Nginx Proxy Manager? Censor the domain.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    esjaysee
    Offline

    Junior Member

    Posts: 24
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:United States
    #16
    2024-07-14, 01:38 AM (This post was last modified: 2024-07-14, 01:39 AM by esjaysee. Edited 1 time in total.)
    Maybe it's time to use Caddy? It just seems to work better for reverse proxies in Windows from my experience. Don't ask me why. But if you need a hand or a sample caddy file let me know.
    damsdams
    Offline

    Junior Member

    Posts: 5
    Threads: 0
    Joined: 2025 Mar
    Reputation: 0
    #17
    2025-04-19, 09:45 PM (This post was last modified: 2025-04-19, 09:49 PM by damsdams. Edited 2 times in total.)
    Hello, I finally found the problem. Jellyfin censors its own domain name, which means that when you host your own theme—on the same machine or possibly the same domain (to be confirmed)—the connection from the app is impossible, even though it works fine from any browser.

    Also, it doesn't generate any errors in the logs or even on the system itself (Debian with Docker in my case). I went through all the logs and found nothing.
    Pages (2): « Previous 1 2

    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode