gabe565 / CastSponsorSkip

⏭️ Skip YouTube ads and sponsorships on all local Google Cast devices
Apache License 2.0
284 stars 6 forks source link

Discovery of devices connected via VPN #79

Open DerSpatz opened 3 months ago

DerSpatz commented 3 months ago

Hello everyone,

I have a CCwGTV that I use for traveling, and it would be great if I could also use CastSponsorSkip (CSS) with it.

My Setup is like this: NAS with OpenMediaVault, running Docker and CSS (LAN IP: 192.168.0.100) PiHole on a OrangePi Zero, with a Wireguard server (LAN IP: 192.168.0.3) The IPs of the Wireguard clients are in the 10.100.0.x range.

I hoped that connecting the CCwGTV via Wireguard would do the trick, but unfortunately the device is not found by CSS, neither with limited IP ranges for the traffic, nor with all traffic routed through Wireguard.

Is there something I can do to make this work, or is there a different solution for CSS to discover a remote CCwGTV?

gabe565 commented 3 months ago

Hello!

Device discovery uses ZeroConf/mDNS, which requires multicast. I believe it would be doable to enable this over WireGuard, but I don't have experience with it. A cursory Google search seems to indicate it would be possible to enable multicast on the WireGuard interface?

Whether you can get discovery working or not, you can set the CSS_DEVICES env with your CC IP address and CastSponsorSkip should still work. Not the ideal solution, but better than nothing.

DerSpatz commented 3 months ago

Hello,

thank you for your quick response. A first try to enable multicast on the VPN server side did not work, so I have to look further into it, and maybe change the config on the CC, too.

I'll post here if I am any wiser!

Edit: Adding the external IP (10.100.0.6) to CSS_DEVICES did not work, unfortunately, but adding the local IP of the the CC (192.168.0.50) did work. So I need to find a way to activate multicast.