Your home music server from anywhere, with WireGuard
Morph has a WireGuard tunnel of its own. It carries only Morph's connections to your home servers: it does not use the phone's VPN and does not touch the other apps. This guide covers the home side, the profile, the test and what to check when it does not connect.
What you need
A WireGuard server on your home network, reachable from the Internet. Morph is the client: it needs nothing else installed on the phone.
- On the router: FRITZ!Box, ASUS, MikroTik, OPNsense, OpenWrt and many others already include WireGuard. This is the simplest choice, because the router opens its own port.
- On the NAS or an always-on computer: wg-easy runs in Docker on Unraid, Synology and most Linux boxes, and shows a QR code for every device you add.
- On a Raspberry Pi: PiVPN installs WireGuard in a few minutes and prints the QR code in the terminal.
On the server, create a new device for the phone and call it Morph. You get a QR code or a .conf file: that is the profile Morph imports.
Prepare your home network
- Forward the port: the UDP port of the WireGuard server, usually 51820, must be open to the Internet and forwarded to the device that hosts the server.
- Two boxes in a row: with a provider modem and your own router behind it, forward the port on both, from the modem to the router and from the router to the server.
- An address that does not change: use the router's DDNS name (MyFRITZ!, DuckDNS, No-IP) or a fixed public IP address. This goes in the profile as Endpoint.
- CG-NAT: if the WAN address of the modem starts with 100.64 to 100.127, the provider shares one public address among many customers and nothing can come in. Ask for a public IP address, or use IPv6.
Add the profile in Morph
Open Settings, then Internet, then Guided setup. The same choices are in the page of every server, under From outside home.
- Scan the QR code that the router, wg-easy or PiVPN shows for the new device. It is the same code the WireGuard app reads.
- Import the .conf file if you saved the profile as a file.
- New profile creates the keys on the phone: copy the public key into the server, then fill in Endpoint and AllowedIPs.
Morph checks two things for you. If Endpoint is an address of the home network, such as 192.168.1.1, it says so in red: at home it would work, outside it cannot. And it lists the networks the tunnel reaches (AllowedIPs): they must include your home network, or be 0.0.0.0/0. The profile is stored encrypted on the phone and adding one turns the feature on.
You do not assign the profile server by server. With one profile, every server on your home network uses it; with more than one, each server takes the profile whose networks contain its address.
Test before you leave
Test from outside home forces the connection through the tunnel even when you are at home, so you can check the profile from the sofa. For a complete test turn Wi-Fi off and use mobile data: many routers cannot reach their own public address from inside the home network.
When it does not connect
| What you see | What to check |
|---|---|
| The WireGuard server does not answer | The forwarded UDP port, on the modem too; the Endpoint in the profile; the phone's public key on the server |
| The tunnel opens but the server is not reachable | AllowedIPs, in the profile and on the WireGuard server: the home network must be listed |
| The tunnel works but the music server refuses | The server's address and port, or the address inside the tunnel under Advanced |
How it behaves afterwards
Morph decides by itself for every connection. It tries the home address and, if that stays silent for a quarter of a second, the tunnel as well: whichever answers sooner wins, so the opening track does not wait. Back on your home Wi-Fi, connections return to the direct path within a few seconds. The tunnel starts when a connection needs it and stops after 5 minutes without any, so at rest it uses no battery.
The tunnel carries Navidrome and other Subsonic-API servers, Jellyfin, Emby, WebDAV, SMB shares and UPnP/DLNA servers with a saved address: the same sources described in the music servers guide. Automatic discovery does not cross it, so add your servers while you are at home. Chromecast, AirPlay and home renderers download on their own and cannot use the phone's tunnel (see Chromecast, DLNA and multiroom).
On mobile data, mind the size of the files: one hour of DSD128 is about 5 GB, one hour of FLAC 24/96 more than 1 GB.
Try it with your DAC
Morph Audiophile is a music player for Android with its own USB audio driver. It is in free beta on Google Play.
Get it on Google Play