[GH-ISSUE #275] zeroconf_enabled option not working #164

Closed
opened 2026-02-28 14:25:56 +03:00 by kerem · 7 comments
Owner

Originally created by @dflvunoooooo on GitHub (Dec 23, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/275

Hi everyone,

I am trying to diable mDNS because I have to use avahi for cups. But the option zeroconf_enabled: false does still lead to a zeroconf server been started from librespot.

level=info msg="zeroconf server listening on port 39471"

How can I actually disable the mDNS server from librespot?

Originally created by @dflvunoooooo on GitHub (Dec 23, 2025). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/275 Hi everyone, I am trying to diable mDNS because I have to use avahi for cups. But the option `zeroconf_enabled: false` does still lead to a zeroconf server been started from librespot. ``` level=info msg="zeroconf server listening on port 39471" ``` How can I actually disable the mDNS server from librespot?
kerem 2026-02-28 14:25:56 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@devgianlu commented on GitHub (Dec 24, 2025):

I cannot reproduce this, are you sure the configuration file is being picked up? Can you share the full log and configuration file?

<!-- gh-comment-id:3689282730 --> @devgianlu commented on GitHub (Dec 24, 2025): I cannot reproduce this, are you sure the configuration file is being picked up? Can you share the full log and configuration file?
Author
Owner

@dflvunoooooo commented on GitHub (Dec 24, 2025):

Thank you for your fast answer! At least the name is picked up correctly, so part of the config file is read. I will share the logs and configuration file, when I am home again.

<!-- gh-comment-id:3690164259 --> @dflvunoooooo commented on GitHub (Dec 24, 2025): Thank you for your fast answer! At least the name is picked up correctly, so part of the config file is read. I will share the logs and configuration file, when I am home again.
Author
Owner

@dflvunoooooo commented on GitHub (Dec 26, 2025):

Here is the log

INFO[0000] running go-librespot 4b099282                
DEBU[0000] app state loaded                             
DEBU[0000] stored credentials not found                 
DEBU[0000] fetched new accesspoints: [ap-gew4.spotify.com:4070 ap-gew4.spotify.com:443 ap-gew4.spotify.com:80 ap-guc3.spotify.com:4070 ap-gue1.spotify.com:443 ap-gae2.spotify.com:80] 
DEBU[0000] fetched new dealers: [gew4-dealer.spotify.com:443 guc3-dealer.spotify.com:443 gue1-dealer.spotify.com:443 gae2-dealer.spotify.com:443] 
DEBU[0000] fetched new spclients: [gew4-spclient.spotify.com:443 guc3-spclient.spotify.com:443 gue1-spclient.spotify.com:443 gae2-spclient.spotify.com:443] 
INFO[0000] zeroconf server listening on port 39007      

and this is the config file

log_level: debug
device_name: Test
zeroconf_enabled: false

I am on version 0.6.2.r1.g6563513.

<!-- gh-comment-id:3693416387 --> @dflvunoooooo commented on GitHub (Dec 26, 2025): Here is the log ``` INFO[0000] running go-librespot 4b099282 DEBU[0000] app state loaded DEBU[0000] stored credentials not found DEBU[0000] fetched new accesspoints: [ap-gew4.spotify.com:4070 ap-gew4.spotify.com:443 ap-gew4.spotify.com:80 ap-guc3.spotify.com:4070 ap-gue1.spotify.com:443 ap-gae2.spotify.com:80] DEBU[0000] fetched new dealers: [gew4-dealer.spotify.com:443 guc3-dealer.spotify.com:443 gue1-dealer.spotify.com:443 gae2-dealer.spotify.com:443] DEBU[0000] fetched new spclients: [gew4-spclient.spotify.com:443 guc3-spclient.spotify.com:443 gue1-spclient.spotify.com:443 gae2-spclient.spotify.com:443] INFO[0000] zeroconf server listening on port 39007 ``` and this is the config file ``` log_level: debug device_name: Test zeroconf_enabled: false ``` I am on version `0.6.2.r1.g6563513`.
Author
Owner

@devgianlu commented on GitHub (Jan 1, 2026):

This is because credentials.type defaults to zeroconf. If you set it to something else then it won't start Zeroconf.

<!-- gh-comment-id:3703975174 --> @devgianlu commented on GitHub (Jan 1, 2026): This is because `credentials.type` defaults to `zeroconf`. If you set it to something else then it won't start Zeroconf.
Author
Owner

@dflvunoooooo commented on GitHub (Jan 4, 2026):

I see. I still want to use the spotify connect function, but librespot creates it's own mdns-server which interferes with my avahi-daemon. Can librespot use avahi as mdns-server?

<!-- gh-comment-id:3708264159 --> @dflvunoooooo commented on GitHub (Jan 4, 2026): I see. I still want to use the spotify connect function, but librespot creates it's own mdns-server which interferes with my avahi-daemon. Can librespot use avahi as mdns-server?
Author
Owner

@devgianlu commented on GitHub (Jan 4, 2026):

A recent PR added this: https://github.com/devgianlu/go-librespot/pull/277

<!-- gh-comment-id:3708265716 --> @devgianlu commented on GitHub (Jan 4, 2026): A recent PR added this: https://github.com/devgianlu/go-librespot/pull/277
Author
Owner

@dflvunoooooo commented on GitHub (Jan 5, 2026):

The new feature is working perfectly! :) Thank you!

<!-- gh-comment-id:3711738208 --> @dflvunoooooo commented on GitHub (Jan 5, 2026): The new feature is working perfectly! :) Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#164
No description provided.