Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Chromecast audio/video between VLANs

    Scheduled Pinned Locked Moved General pfSense Questions
    16 Posts 10 Posters 23.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      burntoc @tcsac
      last edited by

      @tcsac @Toube Do Google Home groups get populated across VLANS for you this way? I am able to cast to specific devices, but I can't see speaker groups unless I join the VLAN they're on.

      1 Reply Last reply Reply Quote 2
      • B
        burntoc
        last edited by

        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

        T 1 Reply Last reply Reply Quote 0
        • T
          tman222 @burntoc
          last edited by tman222

          @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

          1 Reply Last reply Reply Quote 1
          • N
            nedyah700 Rebel Alliance
            last edited by

            This was very helpful! I had to add Port 8443 to Rule 5. Using a new Nest Hub and that port was preventing communication.

            1 Reply Last reply Reply Quote 0
            • I
              incognito
              last edited by

              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?

              I 1 Reply Last reply Reply Quote 0
              • I
                incognito @incognito
                last edited by

                @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..

                1 Reply Last reply Reply Quote 0
                • S
                  slugsshell
                  last edited by slugsshell

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • S
                    slugsshell
                    last edited by slugsshell

                    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: 8009

                    Protocol: UDP
                    Source: VLANx
                    Destination Address: 224.0.0.251 + 224.0.0.252
                    Ports: 5353 UDP (mDNS) + 5355 UDP (LLMNR)

                    Thanks again.
                    BR
                    Alex

                    1 Reply Last reply Reply Quote 1
                    • M
                      Morphal LAYER 8
                      last edited by

                      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.

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        bartkowski @Morphal
                        last edited by bartkowski

                        @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.

                        M T 2 Replies Last reply Reply Quote 0
                        • M
                          Morphal LAYER 8 @bartkowski
                          last edited by

                          Oh OK thanks; I didn't know about those!

                          1 Reply Last reply Reply Quote 0
                          • T
                            tcsac @bartkowski
                            last edited by

                            @bartkowski UDP, TCP, or both? Presumably all UDP?

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              bartkowski @tcsac
                              last edited by

                              @tcsac i have both set in fw rule.

                              1 Reply Last reply Reply Quote 0
                              • Y
                                y2raza @tcsac
                                last edited by

                                @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.

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.