I run Plex at home and reach it from my phone over WireGuard. The one thing I could never do was play something on a friend’s TV: when you cast, the TV fetches the film from the server itself, and their TV is not on my tunnel. The usual answers are to open the server to the internet or to put the friend on your network.
So I made Ferry. The phone is on both networks at once (their Wi-Fi, and home through a split tunnel), so it passes on the one title you picked: to their Chromecast, a smart TV over DLNA, or any browser from a QR code. It is not a router. The TV can’t reach anything at home, each link carries a random token that dies when you press Stop, nothing extra is opened to the internet, and your Plex token stays on the phone. No account with me and no analytics of mine.
Needs Android 10+, your own Plex server and a WireGuard tunnel home. It is a paid app on Google Play (I made it, so I’m biased; happy to answer anything, including the boring network details).
The link above is the setup guide: Plex, WireGuard as a split tunnel, then Ferry.
Ferry is an independent app, not affiliated with, endorsed or sponsored by Plex, Inc. or Google LLC.



You can also achieve the same thing with the Solid Explorer and BubbleUPnP apps.
Solid has a built-in relay so it can play movies accessed over any protocol it supports (SSH, Samba, several types of cloud storage) to any local app.
The local app can be a movie player or, if you want to cast to a TV, Bubble can act as a “player” and cast it. Bubble supports both DLNA and Chromecast.
Not sure what Solid and Bubble cost nowadays but they also gave free versions iirc. May want to take their prices into account when setting yours.
Edit: actually I think you can do this with Bubble alone because it also has a Samba/webdav/DLNA browser included, plus support for Box, Dropbox, Onedrive, Tidal, Qobuz. Only need Solid if you want to do SSH.
Good pointer, and fair: BubbleUPnP can relay to a TV over DLNA and Chromecast, and it has a free version. Ferry is narrower: it starts from your own Plex library through your own tunnel, and the TV gets one film from a link that stops working when you press Stop, with a QR code for a browser as the fallback. If Bubble already covers your setup, that’s a good choice. Noted on the price too.