Skip to content

Instantly share code, notes, and snippets.

@Vigrond
Last active May 5, 2025 07:02
Show Gist options
  • Save Vigrond/1de5fc5ff468a48f053fd455a69c8766 to your computer and use it in GitHub Desktop.
Save Vigrond/1de5fc5ff468a48f053fd455a69c8766 to your computer and use it in GitHub Desktop.
Jellyfin with Chromecast
@bbklopfer
Copy link

Just a comment --- instead of playing with 8.8.8.8 on your home network, it also works to set a (fully-qualified) subdomain to point to the local address of your Jellyfin server (or reverse proxy). For my setup this was super easy, as I didn't need to modify any router settings, just add a DNS entry using my registrar's DNS tools.

So, something like jellyfin.myawesomeserver.net might resolve to 192.168.0.2, which only makes sense if you're plugged into your home network. This works fine with my Chromecast (gen 3).

Make sure that this device can't be accessed from the outside world via e.g. port forwarding. Even still, some folks might consider this a security issue, as it does give outsiders some insight into your home network; however, my feeling is if someone is at the point where my home subnet matters, my network is already completely compromised :)

@AndrewBedscastle
Copy link

@bbklopfer
This is genius!
Until today I did not know this is possible (Assigning private IP addresses to public A records)
Worked flawlessly and took 2 minutes to apply.

@asg0451
Copy link

asg0451 commented Feb 10, 2024

thanks for the guide, this works great on web. however, the iphone app doesnt like it -- error code NSURLErrorDomain on server connect. i see that nginx got hit at / and returned 302, but that's it. any advice?

@Shellfishgene
Copy link

I wonder how VLC works with Chromecast given all the requirements above? It seems to cast just fine without any of this, from PC or Android.

@asg0451
Copy link

asg0451 commented Mar 27, 2024

@Shellfishgene my guess is that vlc is streaming from your laptop/phone rather than from the server directly. does your phone get a little toasty when that's happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment