If you answered yes to the question in the title, you are probably experiencing the inability to cast media properly to devices located on a IoT VLAN. Well you’re in luck! An awesome member of the Ubiquiti community created a docker container for the https://github.com/alsmith/multicast-relay service that can be deployed on the UDM-P.
This mostly fixes the mDNS relay issues that the UDM-P experiences. However, apparently with firmware 1.8+ its supposedly being fixed and this container is not really required. But its Ubiquiti so no idea how long until they actually fix it.
Setting up the container is rather easy. However you need to setup SSH access to your UDM-P. Click here to see Ubiquiti’s docs on enabling SSH on your device.
Deploying the Container
Once you have SSH enabled log into your UDM-P via a SSH enabled console. I use the Windows Terminal app with PowerShell 7 and the Windows OpenSSH client.
Once you accept the connection you will get access to the UDM-P’s CLI. From here we can run the following command to get the info we need for the container.
This command will return all of your network interfaces.
You will want to make note of the two bridge interfaces of the networks you want mDNS to route between via the container. For me its br0 and br2.
Once we have the interfaces, we can deploy the container. Since the UDM-P uses Podman rather than Docker, we need to change up the command a bit to make it work. See here for Docker vs Podman.
podman run -rm -it --network=host -e INTERFACES="br0 br2" --restart=always --name ssdp-relay scyto/multicast-relay
Once the command is executed, an ID is returned for the container verifying that it was deployed. To actually verify it is running, we can run:
To see the container logs we can run:
podman logs -f container_name
If the container is properly running you will see messages in the log that look similar to this image:
To exit the log follow hit CTRL+C.
Now that the mDNS relay service is running, try and connect to your device from your main LAN. You should now be able to see your devices. Just note that if you’re router’s firewall is blocking established/related connections between your main LAN and IoT VLAN you won’t be able to connect.