bencevans / node-sonos

🔈 Sonos Media Player Interface/Client
https://www.npmjs.com/package/sonos
MIT License
704 stars 147 forks source link

effect of network connections on listener #529

Open GerritKuilder opened 2 years ago

GerritKuilder commented 2 years ago

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

pascalopitz commented 2 years ago

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