-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discovery will not work for devices with multiple network interfaces #55
Comments
Want to submit a pull request to fix that? Is there a way we can do the broadcast on all interfaces? On 16/08/2016, at 8:54 AM, Jef Statham <notifications@github.commailto:notifications@github.com> wrote: A common setup is to attach cameras to a second network interface which is not the interface for the default gateway of the host. This line will only broadcast to the interface which is the default gateway: , socket = require('dgram').createSocket('udp4'); You are receiving this because you are subscribed to this thread. |
I suppose that this is about |
@chriswiggins I plan to work on it in the near term I created the issue partially for myself ;)
addMembership is not the issue. addMembership is for listening to the multicast queries and responses not emitting them. Here's a snippet of what I have working for some PSIA cameras
|
has this been implemented yet? |
I'm thinking of forking and allowing an option to specify an interface. This way the user has some control over which interface he/she wants to broadcast and listen on. Would this suffice for this issue? This would definitely be sufficient for my needs. Special case of this is the user can probe independently on each interface as he/she wishes. |
That would work for my issue. I'm still a ways off from using onvif problems with manufacture non onvif sdk required before onvif endpoints are available. |
Great I'm almost done, just need some testing. On Thu, Oct 6, 2016 at 6:56 PM Jef Statham notifications@github.com wrote:
|
@agsh and others please check my pull request and comment on any changes you may want |
Fixed #55: Discovery with multiple network interfaces
@Climax777 done. Thanks for tests! NPM published. |
Excellent! |
A common setup is to attach cameras to a second network interface which is not the interface for the default gateway of the host.
This line will only broadcast to the interface which is the default gateway:
, socket = require('dgram').createSocket('udp4');
https://github.com/agsh/onvif/blob/master/lib/discovery.js#L89
The text was updated successfully, but these errors were encountered: