• 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: Web page loads but cannot connect to server

     
    • 0 Vote(s) - 0 Average

    SOLVED: Web page loads but cannot connect to server

    emby works with same setup
    sravoff
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    #1
    2025-01-21, 05:57 PM (This post was last modified: 2025-01-21, 10:24 PM by sravoff. Edited 1 time in total.)
    Solution: I was forwarding the client IP via the headers. So even though Apache was a proxy and connecting to Jellyfin via localhost, Jellyfin saw a remote client. I enabled remote connections and it works now. 

    The remote connection ports are ignored since Apache forwards the connection to localhost:20001. I didn't think to remote connection section at all because of that.

    Original Question:

    I have a bare-metal installation of jellyfin via curl -s https://repo.jellyfin.org/install-debuntu.sh | sudo bash, and there seems to be an error or a block between Jellyfin's web page and the media server.

    I can load the page with Jellyfin and fill out the server to connect to, but when I press connect I get "Connection Failure We're unable to connect to the selected server right now. Please ensure it is running and try again."

    This is from outside my home network. I can access a separate website (site.example.com) on the same ubuntu server, so traffic gets into and out of the server as expected. I'm proxy passing jellyfin.example.com to Jellyfin (http://localhost:20010) on the backend with Apache2. Encryption is handled by Certbot, and looks good for site.example.com.

    If I am on my home network, either computer or my phone connected to wifi, I can connect to the Jellyfin server. So there's just some issue with connecting from outside the network to the Jellyfin server.

    I have a parallel Emby server with emby.example.com proxy passed to port 20005, and that works fine.

    I haven't had any luck finding errors or anything in the logs, any ideas? Is there a way to see if ATT is blocking the server data only somehow?

    Here's my http Apache config, the https is handled by certbot and seems fine:

    Code:
    # This works fine
    <VirtualHost *:80>
            ServerName site.example.com
            ErrorLog ${APACHE_LOG_DIR}/error.log
            CustomLog ${APACHE_LOG_DIR}/access.log combined
            DocumentRoot /var/www/site
    RewriteEngine on
    RewriteCond %{SERVER_NAME} =site.example.com
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
    </VirtualHost>

    # Emby works, but I'd rather run open-source
    #<VirtualHost *:80>
    #        ServerName emby.example.com
    #        ErrorLog ${APACHE_LOG_DIR}/error.log
    #        CustomLog ${APACHE_LOG_DIR}/access.log combined
    #        ProxyPass / http://localhost:20005/
    #        ProxyPassReverse / http://localhost:20005/
    #RewriteEngine on
    #RewriteCond %{SERVER_NAME} =emby.example.com
    #RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
    #</VirtualHost>

    # Jellyfin gives the server selection page, but cannot connect to the server
    <VirtualHost *:80>
            ServerName jellyfin.example.com
            ErrorLog ${APACHE_LOG_DIR}/error.log
            CustomLog ${APACHE_LOG_DIR}/access.log combined
            ProxyPass / http://localhost:20010/
            ProxyPassReverse / http://localhost:20010/
    RewriteEngine on
    RewriteCond %{SERVER_NAME} =jellyfin.example.com
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
    </VirtualHost>
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Web page loads but cannot connect to server - by sravoff - 2025-01-21, 05:57 PM
    RE: Web page loads but cannot connect to server - by TheDreadPirate - 2025-01-21, 07:42 PM
    RE: Web page loads but cannot connect to server - by sravoff - 2025-01-21, 08:35 PM
    RE: Web page loads but cannot connect to server - by TheDreadPirate - 2025-01-21, 09:09 PM
    RE: Web page loads but cannot connect to server - by sravoff - 2025-01-21, 10:20 PM

    • 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