Skip to content

Spotify Connect does not show up with zeroconf #716

Open
@dolanjp

Description

@dolanjp

Describe the bug
Spotify connect device does not show up on the network with librespot-java.

To Reproduce
Download latest librespot player jar file
Run with sudo java -jar librespot-player-1.6.3.jar
Make sure ZEROCONF is used in config.toml - restart if needed

Expected behavior
Zeroconf announcement should be visible on network and show up as Spotify Connect device in the app on devices connected to the same local network

Screenshots/Stracktraces/Logs
This is in an Ubuntu VM with bridged networking and no firewall on the Ubuntu machine. I'm running into this same issue with both Spocon and the librespot-java player. I decided to try the original librespot and it works fine with zeroconf, the connect item shows up in the Spotify app and the announcement is visible on the network. Below are the ports and protocols used by librespot-java (java) and librespot respectively

image
image

Attached are the outputs from Spocon and from librespot-java. I noticed that no addresses are listed in the announcement but I'm not sure if that's intended:

INFO Zeroconf:500 - Announced Service{alias='librespot-java', service='spotify-connect', port=45337, text={VERSION=1.0, CPath=/, Stack=SP}, addresses=[], domain='.local', protocol='tcp', host='Ubuntu-22'}

Version/Commit
librespot-player-1.6.3.jar

Logs:
librespot-java_output.txt
Spocon_log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions