Use streams server bind ip as spotify connect zeroconf bind interface (#3042)
authorMarvin Schenkel <marvinschenkel@gmail.com>
Wed, 28 Jan 2026 20:07:33 +0000 (21:07 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Jan 2026 20:07:33 +0000 (21:07 +0100)
music_assistant/providers/spotify_connect/__init__.py

index 5b9c90059d1ca9b4dd5d7a3aae33c37ee9857edc..6dcb54ff55fd1424d2127a1a95027242eed0d0ee 100644 (file)
@@ -678,6 +678,9 @@ class SpotifyConnectProvider(PluginProvider):
                 str(EVENTS_SCRIPT),
                 "--emit-sink-events",
             ]
+            bind_ip = self.mass.streams.bind_ip
+            if bind_ip and bind_ip != "0.0.0.0":
+                args.extend(["--zeroconf-interface", bind_ip])
             self._librespot_proc = librespot = AsyncProcess(
                 args, stdout=False, stderr=True, name=f"librespot[{self.name}]", env=env
             )