There are three common ways to play your home NAS library away from home. Here are their trade-offs, and why we recommend a private network.
Option 1: open a port on your router
Forward the NAS port to the internet and anyone can reach your server. For a self-hosted service without a password that is risky, and you also have to deal with changing IP addresses and certificates. Soni Server has no authentication by default, so we do not recommend this.
Option 2: a private network (VPN)
With a WireGuard-based private network such as Tailscale, only devices signed in to the same account can reach each other (see the source). Install it on the NAS and the phone, and the phone reaches the NAS through a private address, with no ports opened. This is what we recommend; steps in Tailscale remote listening.
Option 3: download first, listen offline
Download the albums you want before you leave and they play without a connection. Soni HiFi's downloads are identical to the stream, so offline playback is still the original file. Good for flights, subways and patchy mobile data. Set a storage limit and the least recently played go first.
Putting it together
| Situation | Suggestion |
|---|---|
| Daily commute | Stream over the VPN, cellular downloads off |
| Travel, flights | Download albums before you go |
| At home | Connects over your network automatically |
Soni HiFi tries every saved address at once and uses the first that answers and is the same server, so you never switch between home and away by hand.
Try Soni HiFi
A self-hosted hi-fi music system. FLAC, ALAC, WAV and AIFF, bit-perfect, free for now.