Discovery Mode needs access to local network #39
grunjol posted onGitHub
Problem/Motivation
Recently discovery mode was added but it doesn't seem to work https://github.com/hassio-addons/addon-spotify-connect/issues/33#issuecomment-576923911
Expected behavior
If you leave username and password empty, a spotify connect instance should be discoverable on the local network instead of establish a connection with spotify api.
Actual behavior
The instance is not discoverable on the local network BUT appears on the bridged (private) hassio network (i can see the HA discovers the instance but its an unknown type, so it discards it)
Steps to reproduce
Run addon in discovery mode (empty user/pass)
Proposed changes
librespot uses mDNS to publish the listening port. mDNS uses IP multicast but is bounded to the internal private network, so it doesn't propagate to the users/clients .
A possible solution could be set host_network: true in the addon config