-
Notifications
You must be signed in to change notification settings - Fork 84
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
Ability to restrict service querying to specific network interface. #29
Comments
Sorry for the late reply! I am very confused by your issue.
Not sure about this. How is it restricted to a specific IPAddress?
A query is sent on all network interfaces. There is no way to use a specific interface. |
Friday evening issue.. I was referring to the It seems I was in error about how it works, since as you pointed out, the I'll edit my original issue description to better reflect the intent. |
I do not see a need to restrict Service Discovery to a specific interfaces. mDNS is all about zero configuration. As for advertising, the ServiceProfile can specify which addresses it is listening on. |
Replying to your last comment on #30 ...
I'm working on PR #32 right now. When I was trying to debug earlier, I did some things wrong. The problem now is, that I don't get any exception at all. As I described more detailed in the thread on the PR, there is zero activity on the local network interface without specifying it explicitly. |
Just like the mDNS advertising can be restricted to specific IPAddresses, it would consistent to do the same for queries.This is a feature request for the ability to restrict both service advertising and service discovery to a set of network interfaces.
Motivation
The situation in my case is a computer that is connected to two networks. I ran into a lot of trouble, because the current implementation attempts to use all network interfaces simultaneously:
UdpClient
can not be created on a particular interfaceProposed solution
Support for restricting activity to a specific network interface could be implemented via a
NetworkInterfaces[]
parameter to the constructor of theMulticastService
.The text was updated successfully, but these errors were encountered: