Stream your songs from your webserver using MPD, snapcast & Tailscale.
Network:
[mpd ⟶ snapcast_server (on nimbu)] <~tailscale~> [snapcast_client (on vince): nimbu]
Hosts:
• nimbu: my remote machine
• cider: my local machine (linux)
• vince: my local machine (android)
On your remote machine: nvim ~/.config/mpd/mpd.conf
audio_output {
type "fifo"
name "snapcast"
path "/tmp/snapfifo"
format "48000:16:2"
mixer_type "software"
}
systemctl --user restart mpd
curl -fsSL https://tailscale.com/install.sh | sh
sudo ufw allow 1704/tcp
sudo ufw allow 1705/tcp
sudo ufw allow 1780/tcp
# install snapcast
https://github.com/badaix/snapcast/blob/develop/doc/install.md
# start the snapcast service
sudo systemctl restart snapserver
Connect to your snapcast_server
- On Android: Use the snapcast app from F-Droid
- Tap settings. I've to set
nimbu
as my hostname - If you don't want to install an app: Visit http://nimbu:1780 for a web-interface!
Make sure tailscale is up and running!