Giter Site home page Giter Site logo

Running with openvpn about homebridge-zp HOT 1 CLOSED

itskeKs avatar itskeKs commented on May 30, 2024
Running with openvpn

from homebridge-zp.

Comments (1)

ebaauw avatar ebaauw commented on May 30, 2024

Just so I understand correctly, the Raspberry and the Sonos players are on the same side of the VPN, the Raspberry just acts as VPN server for remote clients (or is a VPN client to a remote VPN server)? This means that when the VPN is active, the Raspberry has two different IP addresses.

On startup, homebridge-zp retrieves the IP address of the local machine. When subscribing to the Sonos players to receive state change notifications, homebridge-zp specifies its own IP address in the callback URL.

With help of Murphy, it (or rather the network core of NodeJS) homebridge-zp probably picks the wrong one when the VPN is active. You can verify that running homebridge -D, see https://github.com/ebaauw/homebridge-zp#troubleshooting. Because of this, it wouldn't receive any notifications from any Sonos player. You can force the right IP address in config.json, using the host key, see https://github.com/ebaauw/homebridge-zp#configuration.

Not sure if that's actually the issue you're facing. Before setting up the subscriptions, homebridge-zp need to discover the Sonos players. This is done through UPnP. I haven't seen any issues with this on multi-homed hosts, but I'm not sure there aren't any. I still use the sonos library for discovery. If specifying host in config.json doesn't help, could you please run homebridge -D (when the VPN is active) and attach (not: cut/paste) the debug out here, see https://github.com/ebaauw/homebridge-hue#debug-log-file.

from homebridge-zp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.