Jellyfin Forum
Connection Error While Using Cloudflare - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Connection Error While Using Cloudflare (/t-connection-error-while-using-cloudflare)



Connection Error While Using Cloudflare - Ethan Brewster - 2024-01-09

Hi all, I've been trying to set up a tunnel via cloudflare to connect to my jellyfin server remotely from the web. I have successfully been able to connect to the jellyfin port (using the default 8096), but when I try to connect to the server I get a connection failure stating "We're unable to connect to the selected server right now. Please ensure it is running and try again." Has anyone else messed with this and has been able to come up with a solution? Any help is appreciated.


RE: Connection Error While Using Cloudflare - TheDreadPirate - 2024-01-10

Using a CF tunnel for video streaming is against their TOS and we strongly discourage it.

When you say "I have successfully been able to connect to the jellyfin port (using the default 8096)" I am assuming you mean when you are at home. And that you are having trouble with remote access.

Did you setup port forwarding in your router?


RE: Connection Error While Using Cloudflare - Ethan Brewster - 2024-01-10

Against who's TOS (sorry didn't know).

No, so when I am away I can bring up the login page, but can't manage to get into the server. Cant set up portforwarding sadly cause my router has cgnat, hence why I am trying to use a tunnel. Tried to use tailscale, but it has been iffy at best.


RE: Connection Error While Using Cloudflare - TheDreadPirate - 2024-01-10

Cloudflare's TOS.

https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-stream/delivering-videos-with-cloudflare/

Are you using https?


RE: Connection Error While Using Cloudflare - Ethan Brewster - 2024-01-10

huh I didnt know that. So is there a different way I can go about it without breaking their tos? Im using HTTP as of right now but ill try HTTPS. Thanks!


RE: Connection Error While Using Cloudflare - TheDreadPirate - 2024-01-10

I was only asking about https because some people use self-signed certs, which are not supported by most clients.

If you have CGNAT, you have an uphill battle. The most common solution is to rent a cheap VPS to act as the reverse proxy, then have the VPS be a wireguard server. Then your jellyfin server at home is the wireguard client.


RE: Connection Error While Using Cloudflare - Ethan Brewster - 2024-01-10

I have a raspi, so could I do something with that? Also would there still be a way to use a domain name to access the jellyfin server? Kinda like the tunnel feature of cloudflare.


RE: Connection Error While Using Cloudflare - TheDreadPirate - 2024-01-10

The RPi wouldn't help since it would still be on you CGNAT'd connection. You would point your domain at this hypothetical externally hosted VPS.


RE: Connection Error While Using Cloudflare - Ethan Brewster - 2024-01-10

Do you know of any good guide for accomplishing this? Also expected costs? Thanks for the help so far