To play a NAS library on an iPhone without copying it, the player reads files over the network on demand, so the decisions are about protocol, access and the NAS's own disks. Bandwidth is rarely the limit: uncompressed 24-bit/192 kHz stereo needs 9.2 Mbps, CD quality 1.4 Mbps, and FLAC less than either. What usually goes wrong is a protocol the player does not speak, remote access set up by exposing the NAS to the internet, and drives that take tens of seconds to wake.
Which protocol should the player use: SMB, WebDAV, DLNA or Subsonic?
The one that matches how you listen. Each protocol puts the library logic in a different place: SMB and WebDAV serve plain files and leave the library to the player, while DLNA and Subsonic-style servers build the library on the NAS.
| Protocol | What the NAS serves | Strength | Watch out for |
|---|---|---|---|
| SMB | Shared folders, the Windows file-sharing protocol | Standard on NAS systems; the iPhone Files app connects to it | Built for the LAN; never expose it to the internet |
| WebDAV | Files over HTTP, with directory listing | Works over HTTPS, reverse proxies and VPNs; byte-range reads | Some servers refuse deep listings, so scans walk folder by folder |
| DLNA / UPnP AV | A media server's own catalogue | Automatic discovery on the home network | The library view is whatever the server indexed |
| Subsonic API | A music server with search, playlists and streaming | Can transcode to a lower bitrate for mobile data | Needs server software and a compatible player |
A few specifics matter. WebDAV is defined in RFC 4918 as extensions to HTTP: listings use PROPFIND with a Depth of 0, 1 or infinity, servers must support the first two and may refuse infinity, and reading a file is an ordinary HTTP request that can ask for a byte range. UPnP AV, the standard behind DLNA labels, defines MediaServer and MediaRenderer devices. The Subsonic API offers a stream call that can cap the bitrate and choose a target format, and a download call that returns the original file without transcoding. On the iPhone itself, Files gained SMB support in iOS 13, though it browses files rather than playing a library.
How much bandwidth does lossless streaming need?
Less than most home networks provide. Uncompressed PCM sets the ceiling, and FLAC files are smaller by an amount that depends on the music:
| Audio | Uncompressed rate | Data per hour at that rate |
|---|---|---|
| 16-bit / 44.1 kHz (CD) | 1,411 kbps | 0.64 GB |
| 24-bit / 48 kHz | 2,304 kbps | 1.04 GB |
| 24-bit / 96 kHz | 4,608 kbps | 2.07 GB |
| 24-bit / 192 kHz | 9,216 kbps | 4.15 GB |
The rates are simple arithmetic: sample rate times bit depth times two channels. To find your own library's real figure, take a file's size in megabytes, multiply by eight and divide by its length in seconds. At home, even the bottom row fits easily on ordinary Wi-Fi. Away from home the per-hour column is the one to watch, which is why caching and, on Subsonic-style servers, transcoding exist.
Can you listen away from home without opening ports?
Yes, and you should. There are three ways to reach a NAS from outside, and they carry very different risk:
- A VPN into your home network, such as WireGuard on the router. The phone joins the home network and the NAS keeps its private address in one of the RFC 1918 ranges: 10/8, 172.16/12 or 192.168/16. Everything works as it does on the sofa.
- A mesh VPN such as Tailscale, which gives each device an address from 100.64.0.0/10, the shared address space of RFC 6598. It can also issue HTTPS certificates from Let's Encrypt for devices' ts.net names, valid for 90 days.
- Port forwarding, which puts the NAS's services on the public internet. CISA's #StopRansomware guide says not to expose services on the web, to block external SMB access at the perimeter firewall, and to patch internet-facing servers promptly.
The choice also affects encryption. Sleeve, for example, accepts plain HTTP and self-signed certificates only for hosts on the local network: private address ranges, link-local addresses, .local names and single-label hostnames. A mesh VPN's 100.x address is not in that list, so reaching a NAS that way needs HTTPS with a certificate iOS trusts, such as the one the mesh VPN can issue.
Why does the first song after a pause take so long?
Because the NAS's drives went to sleep and have to spin back up before they can serve a byte. A drive in standby has its motor stopped; Seagate's IronWolf Pro product manual gives 25 seconds typical and 30 seconds maximum from standby to ready.
That delay meets the player's patience. Sleeve allows each WebDAV request 20 seconds before reporting the source as timed out, a shorter window than a typical spin-up, so the first track after a long idle can fail with a named timeout; a second attempt a few seconds later usually finds the drives spinning. Three fixes, from cheapest: lengthen the NAS's disk sleep timer, keep the music share on an SSD volume that does not spin down, or rely on a cache for what you play most.
Scanning feels the same delay many times over. Because servers may refuse infinite-depth listings, a careful scanner lists one folder at a time, so a library of 2,000 album folders means 2,000 requests. Sleeve scans this way and does not download audio while scanning; tags are read later with byte-range requests.
What should a cache hold, and how big should it be?
A cache should hold whole tracks you are likely to replay, inside a size limit you set, in storage the system may reclaim. Partial files are worse than nothing, because a half-downloaded track looks playable until it fails.
Sleeve follows those rules. A streamed track enters the cache only once every byte has arrived; a track you skipped halfway leaves nothing behind. The budget is a choice of off, 1, 2, 5 or 10 GB, with 2 GB as the default, and the files live in the system's cache area, which backups skip and iOS may clear when the phone runs very low on space. Disconnecting a source deletes its cached tracks. Even at the uncompressed CD rate, 2 GB holds a little over three hours of music and 10 GB about fifteen and a half, and FLAC fits more. There is no way to pre-load an album: the cache fills from what you play.
What Sleeve supports, and what it does not
Sleeve reads a NAS over WebDAV. It finds WebDAV servers on the home network through Bonjour and prefers the HTTPS entry when a server advertises both, signs in with the username and password you give it, and keeps the password in the Keychain. It plays FLAC, ALAC, AAC, MP3, WAV and AIFF from the share without re-encoding, alongside folders in Files, cloud drives and music sent from a computer over Wi-Fi.
The limits are deliberate and worth knowing before you set up a server: no SMB, no DLNA and no Subsonic API, so a NAS needs its WebDAV service switched on, and there is no server-side transcoding for mobile data. The free version connects one source; Sleeve Pro, yearly or a one-time purchase, removes the limit. Streaming lossless from a NAS with Sleeve walks through the setup, and the lossless playback chain on iPhone explains what happens after the bytes arrive.
A setup that works, in order
- Pick the protocol by the player. If your player speaks WebDAV, enable the NAS's WebDAV service and use HTTPS where you can; if it speaks Subsonic, install a compatible server on the NAS.
- Point the player at the music folder, not the whole volume, so scans touch only what they need.
- Decide on disk sleep. Accept a slow first track, lengthen the sleep timer, or move the music to SSD.
- Set the cache to what you replay in a week, using the per-hour figures above.
- Reach the NAS from outside through a VPN or mesh VPN, and close any forwarded ports.
When not to stream at all: if you listen mostly where there is no reliable connection, or your favourite albums exceed what a cache can hold, a deliberate offline copy on the phone is the honest answer. Before connecting a new app to a NAS that holds your whole collection, check what that music player sends and stores. Sleeve is on the App Store.