Chromecast audio/video between VLANs
-
-
FYI to anyone still coming across this topic. I was able to solve my issue. Some of the details are found in feature request I opened once I realized the package fixed my issues:
https://redmine.pfsense.org/issues/10818
-
@burntoc said in Chromecast audio/video between VLANs:
FYI to anyone still coming across this topic. I was able to solve my issue. Some of the details are found in feature request I opened once I realized the package fixed my issues:
https://redmine.pfsense.org/issues/10818
Hi @burntoc - I think adding a package is a great idea. Do you mind sharing some more details on how you are currently running UDP broadcast relaying manually? I'm interested in experimenting with this as well. Thanks in advance.
EDIT: I found your other thread here and followed instructions there - works great!
https://forum.netgate.com/topic/155698/how-can-i-get-this-udp-relay-package-for-casting-across-vlans
-
This was very helpful! I had to add Port 8443 to Rule 5. Using a new Nest Hub and that port was preventing communication.
-
I can not get this working with a chromecast gen. 2
I have chromecast on a IOT VLAN.
In Avahi I have picked "allow" mode and picked the IoT VLAN and the regular LAN where my source phone is at.
Then clicked the repeat tickbox and set up my pfsense domain and hostname settings.Then I have followed the rest of the instructions for firewall rules.
I still can not find the chromecast when trying to cast from my phone.. Any advice or anything?
-
@incognito said in Chromecast audio/video between VLANs:
I can not get this working with a chromecast gen. 2
I have chromecast on a IOT VLAN.
In Avahi I have picked "allow" mode and picked the IoT VLAN and the regular LAN where my source phone is at.
Then clicked the repeat tickbox and set up my pfsense domain and hostname settings.Then I have followed the rest of the instructions for firewall rules.
I still can not find the chromecast when trying to cast from my phone.. Any advice or anything?
EDIT:
Actually it did work.. Seems like it took some time to get working. Maybe was a cache thing.. -
This post is deleted! -
Hi,
thank you tcsac for your guide. This helped me out a lot.
I followed your setup guide, adjusted it a little to my needs.
For example I completely skipped the IPV6 part. On my pfSense setup I have deactivated IPv6 completely or at least all traffic is being blocked. Therefore I also checked the disallowed IPv6 Traffic in Avahi.I had to allow an additional destination address 224.0.0.252 and port 5355 UDP after permitting the traffic to pass, I could see the chromecast residing in a different VLAN and Subnet.
At the end it turned out I only had to setup following rules:
Protocol: TCP
Source: VLANx (where streams originates from e.g. Mobile Phone)
Destination: Static DHCP addresses from chromecast in VLANy
Port: 8009Protocol: UDP
Source: VLANx
Destination Address: 224.0.0.251 + 224.0.0.252
Ports: 5353 UDP (mDNS) + 5355 UDP (LLMNR)Thanks again.
BR
Alex -
tl;dr: Allow UDP port 10008 also.
I have been using this setup for a while to cast my desktop from Google Chrome on one VLAN to a Chromecast on another VLAN, but today it suddenly stopped working. It worked fine yesterday but not today. Chrome would find the Chromecast, and if I tried to cast to it the TV attached to the Chromecast would show a blank screen for a few seconds like the cast was about to start, but then it would disconnect and Chrome would show that it's no longer casting.
In case anyone else has this problem, I also allowed UDP port 10008 through the firewall from the Chrome computer to the Chromecast and casting works again. I found this port number by doing a Wireshark capture. My guess is something probably changed in a recent Chrome and/or Chromecast update.
-
@morphal
I added this port, 8012, 10001, and 10101 back in March 2021 to my Chromecast alias. You may want to add those also, if not already. -
Oh OK thanks; I didn't know about those!
-
@bartkowski UDP, TCP, or both? Presumably all UDP?
-
@tcsac i have both set in fw rule.
-
@tcsac thank you for the instructions, this worked great and now I can cast YouTube from my mobile to my TV. However, the screen mirroring on my iPhone is still not displaying the TV which I have assigned a static IP. Any idea on how to fix that? TIA.