udpbroadcastrelay icon indicating copy to clipboard operation
udpbroadcastrelay copied to clipboard

DIAL protocol

Open frosty5689 opened this issue 3 years ago • 4 comments

Hi,

Wondering what is needed to get this working with DIAL protocol, which is a combination of SSDP and HTTP. I'm trying to connect to Youtube on webOS across subnets. Tried running the SSDP forwarding. It didn't make the TV show up in list of cast targets.

Any ideas?

Thanks!

frosty5689 avatar Jun 23 '21 06:06 frosty5689

I have the same issue with the YouTube app across VLANs on Samsung TVs and started working on a solution

DIAL seems to be actively hostile to cross subnet operation (at least on my TV):

  • SSDP M-SEARCH must come from the same subnet as the target device [else no response]
  • The request for DIAL REST service location must come from the same subnet as the target device [else 401 error]
  • Requests to the actual DIAL REST service must also come from the same subnet [else 401 error]

Right now I have a proxy implemented (https://github.com/deonvdw/udpbroadcastrelay) for the first item, but a lot of work remains.

deonvdw avatar Dec 16 '21 03:12 deonvdw

My fork (https://github.com/deonvdw/udpbroadcastrelay) now supports SSDP/DIAL to proxy requests from e.g. the Youtube app to smart TVs. Tested on pfSense 2.5.2 (FreeBSD 12.2) with the YouTube Android app and two Samsung smart TVs.

Enable the mode by specifying a -s 1.1.1.3 command line parameter, e.g. ./udpbroadcastrelay --id 1 --port 1900 --dev lagg0.1 --dev lagg0.2 --dev lagg0.3 --multicast 239.255.255.250 -s 1.1.1.3 -d and substituting with your interface names.

deonvdw avatar Dec 24 '21 05:12 deonvdw

@deonvdw thanks, I've created a arm64 container for Unifi UDM/P devices https://hub.docker.com/r/stonith/udpbroadcastrelay which allows Android devices to see the cast speaker groups on a different vlan.

stonith avatar Dec 28 '21 19:12 stonith

@deonvdw if you can merge your changes back, the package on FreeBSD will pick it up.

rajil avatar Feb 20 '22 12:02 rajil