01-17-2024, 02:24 PM
Dear all,
situation:
- moodeaudio/mpd in LAN
- NAS (optional, with music and/or central mpd db server) in LAN
- control (e.g. to control spotify client which is discovery mode) via phone from WLAN
- WLAN and LAN are connected via VPN (e.g. wireguard)
Normally it is not possible to discover the spotify client on the moodeaudio player due to broadcast/ multicast being not routed via VPN. If one connects from LAN (spotify control app/client) to LAN (moodeaudio player) a WLAN phone will (interestingly?) sometimes find it (maybe due to spotify itself?), but not reliable and it requires first a LAN client to do the first connect. IF that does not happen it never discovers the moodeaudio with spotify client.
Solution:
- mdns daemon ie. multicast daemon (e.g. https://github.com/troglobit/mdnsd), there are debs available but requires 'bookworm' due to newer libc6 requirement.
- best to run it on the VPN server and it has to listen on all relevant interfaces, ie. LAN as well as WLAN. If a debian package is installed this is done automatically.
- spotify discovery from phone (WLAN) via VPN to LAN worked out of the box and reliable.
best regards
situation:
- moodeaudio/mpd in LAN
- NAS (optional, with music and/or central mpd db server) in LAN
- control (e.g. to control spotify client which is discovery mode) via phone from WLAN
- WLAN and LAN are connected via VPN (e.g. wireguard)
Normally it is not possible to discover the spotify client on the moodeaudio player due to broadcast/ multicast being not routed via VPN. If one connects from LAN (spotify control app/client) to LAN (moodeaudio player) a WLAN phone will (interestingly?) sometimes find it (maybe due to spotify itself?), but not reliable and it requires first a LAN client to do the first connect. IF that does not happen it never discovers the moodeaudio with spotify client.
Solution:
- mdns daemon ie. multicast daemon (e.g. https://github.com/troglobit/mdnsd), there are debs available but requires 'bookworm' due to newer libc6 requirement.
- best to run it on the VPN server and it has to listen on all relevant interfaces, ie. LAN as well as WLAN. If a debian package is installed this is done automatically.
- spotify discovery from phone (WLAN) via VPN to LAN worked out of the box and reliable.
best regards