node-sonos icon indicating copy to clipboard operation
node-sonos copied to clipboard

effect of network connections on listener

Open GerritKuilder opened this issue 3 years ago • 1 comments

Hi,

I have run a few times into this issue: I have a server with a wireless and a cable connection

When I stop the wifi my listener does not work.

Is there an explanation for this? Is there an ip number set/used somewhere for the listener?

Can this be overridden?

Kind Regards,

Gerrit Kuilder

GerritKuilder avatar Feb 20 '22 12:02 GerritKuilder

Yes, there is, and yes, you can:

https://github.com/bencevans/node-sonos/blob/master/lib/events/adv-listener.js#L17

Pass the IP address you want as SONOS_LISTENER env variable

pascalopitz avatar Feb 20 '22 13:02 pascalopitz