Here’s what got Plexamp casting to Caldera with the player on a different VLAN from my phone and desktop. AFAIK Caldera’s developer is definitely not promising support across VLANs, so this is just one working setup, definitely not an official guide.
My setup
- OPNsense router
- Plexamp on my trusted VLAN, which happens to be a /23
- Caldera on two Verox players on my IoT VLAN
- Plex server on a third VLAN
- Desktop TestFlight Plexamp and iOS TestFlight Plexamp [4.50.21 (244)]
Why it doesn’t work out of the box
Plexamp finds players by broadcasting a GDM search to UDP 32412. Broadcasts stop at the VLAN edge, so the player never hears it. Even with the search relayed, the reply and the playback traffic still have to get through your firewall.
1. Update Plexamp if your subnet isn’t a /24
The iOS app used to assume a /24, so on my /23 it broadcast to the wrong address. Elan confirmed this and said it was fixed for Android too. It’s fixed for me in the TestFlight build above, so older mobile builds on a larger subnet may not find the player, even with everything below in place. Desktop 4.13.2 (not beta) which I happened to have lying around, also used the correct broadcast address.
2. Relay the search between VLANs
I use alsmith/multicast-relay on a small Linux container with a network leg on each VLAN:
multicast-relay.py --interfaces eth0 eth1 --relay 255.255.255.255:32412
- Despite the 255.255.255.255 address, this entry also matched each leg’s subnet broadcast, which is what Plexamp actually sends.
- If you relay other things, put them all after a single
--relay. Using the flag twice makes the second replace the first. - The relay keeps the client’s source IP, which lets the player reply directly to it. Don’t use its masquerade option on the leg facing the player, or the reply goes to the relay instead.
3. Open the firewall
| From | To | Protocol / port | Why |
|---|---|---|---|
| Client VLAN | Player | TCP 32500 | Plexamp controls the player |
| Player | Client devices | UDP, source port 32412 | Search replies |
| Player | Plex server | TCP 32400 | The player fetches the stream, if the server is on another VLAN |
- The reply rule is the easy one to miss. The search arrived through the relay, so your firewall has no state for it and will block the reply unless a rule allows it.
- My own client-to-player rule allows all ports. TCP 32500 is the developer’s figure, and I haven’t tested with only that port open.
- The server rule keeps the stream local. Without it, my player went out through the WAN and back in.
- FWIW I use the same relay to enable bonjour, Roon, HQPlayer and a couple other things
4. Test it
Use Plexamp, not the regular Plex app. Open the cast menu and tap refresh. If nothing shows up:
- Capture UDP 32412 on the player’s VLAN to see if the search arrives.
- Then check your firewall log for the player’s reply being blocked.
Other relay tools may work too, but this is the only one I’ve tried that has worked for all of my various applications doing discovery. The result for me is full FLAC from Plexamp to both players across VLANs. Thanks to @spockfish for pointing me at this, and then to Elan for helping me diagnose and push a change to the Plexamp TestFlight client in mere hours to enable this to work.
[EDIT - moved this to Tinkering myself because VLANs are not core stuff)