Skip to main content
Tutorial

Sonos + UniFi: Best Practices & Recommended Settings

  • April 8, 2026
  • 79 replies
  • 8333 views

Show first post

79 replies

Airgetlam
  • September 5, 2026

The way I’ve always imagined it (which may or not be based in reality) is the speed of the switching device. When connected via WiFi, there is none, the signal goes straight from the soundbar to the surrounds and Sub. When connected by Ethernet, the signal has to go to a switch/router that decides where the packets go to, and sends them. Unfortunately, that takes some extra time. It could be insignificant, it might not be. Why tempt fate, especially given the fact that surrounds and subs were primarily designed to connect via the WiFi, and fall back to the Ethernet when necessary?


Forum|alt.badge.img+18
  • Local Superstar
  • September 6, 2026

A Sonos device has a Fast Ethernet limited to 100Mb/s, that has less available bandwidth than the 5GHz WiFi connection:

https://www.intel.com/content/www/us/en/support/articles/000005725/wireless/legacy-intel-wireless-products.html

Sonos requires a fraction of available bandwidth, even for Hi-Res / Lossless.

The buffers in the Sonos devices will handle some latency/packet loss, if there is some congestion and/or interference. I did a test a couple of years ago to prove this for myself, with some artificial interference introduce with a Microwave, albeit on the 2.4GHz band (which has less bandwidth available than the 5GHz BTW) that is easier to create interference:

 

Why tempt fate, especially given the fact that surrounds and subs were primarily designed to connect via the WiFi

Exactly, the Sonos engineers have spent many man years developing and testing this, and understand the bandwidth requirements and limitations of the various network technologies used. They know their system better than us (the consumers), even if we may (think we?) know a little about networking and digital sound.


jgatie
  • September 6, 2026

The following is just my opinion, but I always assume underneath all the “I want everything connected via Ethernet” demands is an unwarranted fear of the effects of non-ionizing EMF from WiFi.  Too many of the early “Let us turn off WiFi” threads eventually devolved into this issue for me to think such concerns aren’t still out there. 


  • Contributor I
  • September 9, 2026

Moved my whole Sonos system to its own VLAN on UniFi (UCG-Fiber, Network 10.6). All 13 devices, nothing left behind on the LAN: two home theatre groups (an Arc Ultra with stereo Era 300 surrounds and a sub, and an Arc with two surrounds and a sub), two stereo pairs and a Port. All wireless. Controllers (phones, laptops) stay on the main LAN. Everything works, both home theatre groups included, plus grouping and Spotify Connect. What mattered and why, because most of the advice in this thread did not apply.

Worth knowing before you go looking in the controller: bonded surrounds and subs do not appear as separate clients on the VLAN, they ride their primary. Only the primaries and stereo pair members get their own address. Sonos itself reports the full picture, GetZoneGroupState on any player lists every zone player and its address.

Did not need:

  • STP changes. Left everything on RSTP at default priority and never touched spanning tree. My system is all wireless, so no speaker bridges a wired and a wireless path and no loop can form. If you run genuinely mixed wired and wireless, this part of my experience will not transfer.
  • Multicast Enhancement off. It is usually advised off because it converts multicast to unicast per client and can silently drop a group member. Left it on, grouping is fine. On a busy 2.4GHz band true multicast costs more airtime, so I left the working setting alone.
  • Proxy ARP off. Same, no symptom, left on.
  • Moving speakers to a different SSID. UniFi assigns a VLAN per client (Virtual Network Override), so the VLAN follows the client instead of the SSID. Speakers kept their SSID and were not re-paired.

Did need:

  • Gateway mDNS proxy scoped to include the Sonos VLAN. mDNS is link local with TTL 1 and does not cross a router on its own. AirPlay and Spotify Connect discovery both ride on it.
  • IGMP snooping scoped to include the Sonos VLAN. Without it the switch floods Sonos multicast to every port on the VLAN. Check your querier setting: snooping with no querier can expire group memberships and black hole traffic, unless the controller floods unregistered groups.
  • An SSDP relay. UniFi's mDNS proxy relays mDNS only. The Sonos app discovers over SSDP on 239.255.255.250:1900, also link local, and nothing in UniFi carries it across a VLAN. The symptom is specific: Spotify Connect works immediately while the Sonos app finds nothing. That split means mDNS is crossing and SSDP is not. I run multicast-relay on a box that already sits on the LAN. Concrete example on Debian: give that box a leg in the Sonos VLAN with ip link add link eth0 name eth0.30 type vlan id 30 plus an address in that subnet, then run the relay across both interfaces. I use the scyto/multicast-relay container with network_mode host, INTERFACES=eth0 eth0.30 and OPTS=--noMDNS, the last one so it does not duplicate what the UniFi mDNS proxy already does. Make the sub interface persistent, otherwise it disappears on reboot and discovery silently breaks. The VLAN has to be tagged on that box's switch port, which it often already is.
  • Sonos to LAN firewall rules: UDP 319, 1900-1902, 6969, 32768-65535 and TCP 3400, 3401, 3500. Speaker to controller direction, needed for replies and status. Sonos picks a random high UDP port for some of it, so 32768-65535 is not optional.

What actually broke it:

My block rule matched all connection states, which drops ESTABLISHED and RELATED as well as NEW. Return traffic of connections my own phone had opened was dropped on the way back, so discovery died regardless of which ports I opened. Match NEW and INVALID only.

Home Assistant:

Only relevant if you use it. The HA Sonos integration needs no inbound rule. In conntrack every flow is opened by HA towards the speaker on 1443 and 1400, the speakers never initiate, and replies return as ESTABLISHED which the NEW only block already allows. I removed my allow rule and nothing changed. Pointing the VLAN's DNS at a filtering resolver is a separate choice, unrelated to Sonos working.

How far the isolation goes:

Speakers cannot open connections to the main LAN except the ports above, cannot reach my IoT VLAN or any other VLAN, and cannot reach the gateway admin interface. The gateway needs its own rule, it sits in a separate firewall zone and a LAN rule does not cover it. LAN to Sonos stays unrestricted.

Verify by sourcing traffic from the Sonos VLAN to a device on another VLAN and confirming it fails while the same request from the LAN succeeds. Testing from the router, or from a host with a direct route to the target, proves nothing, the packet never reaches the firewall.

Still open: UDP to the LAN in that high range is wide and I have not found a way to narrow it.