Set up Harbor Music
Start with an always-on Mac or Linux computer, Git, Python 3.11 or newer, and a folder of audio files such as MP3, M4A, or WAV. A compatible NAS can also be your media host.
-
Start Harbor on the media host
Run these commands in Terminal and choose your music folder when asked. Open the local player address printed by the setup command to confirm your tracks appear.
git clone https://github.com/bobofbuilding/harbor-music.git cd harbor-music ./setup-harbor -
Give your devices a private address
Install Tailscale on the host and each listening device and join the same private network. Run this on the host and append
/music/to the HTTPS address Tailscale prints. Keep the owner player local to the host.tailscale serve --bg http://127.0.0.1:8765 -
Pair each device
On the host, open Devices to get a one-time code. Open your private Harbor address on the device and enter the code. Generate a new code for each device.
On iPhone or iPad, add Harbor to the Home Screen from Safari before pairing if you plan to use it there. Keep the media host awake and Harbor running for streaming away from home.
Before you install
Where do I get the music files?
Use files from your own collection, such as purchased downloads or CDs you’ve digitized. Harbor can’t import Spotify’s catalog or offline downloads from streaming apps.
Do I need a NAS or a Mac app?
An always-on Mac or Linux computer with local storage works as a media host. You can use a browser on your listening devices or build the optional Mac app.