sebastianhaberey / nsd

Flutter Network Service Discovery (NSD) Plugin
61 stars 30 forks source link

Select on which network interface to search #44

Open lorenzovianello-vivaldigroup opened 1 year ago

lorenzovianello-vivaldigroup commented 1 year ago

Description

Hi, is there any chance to give the user the ability to select a NetworkInterface where to scan for devices? At the moment in a Windows system with multiple interfaces, the discovery system wearch on the first (?)

Could this be implemented, or is already on?

Scenario

Use the plugin in my own application via Flutter dependency

Platform

Windows

sebastianhaberey commented 1 year ago

It looks like the DNS_SERVICE_BROWSE_REQUEST (Windows) supports an InterfaceIndex parameter. NsdManager#discoverServices (Android) seems to support a Network parameter. It's likely that Apple's Bonjour API will support something similar.

So this is definitely a reasonable feature to add. Unfortunately I'm in the middle of a project now and won't be able to do this anytime soon 😕 Sorry.