-
Notifications
You must be signed in to change notification settings - Fork 25
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
can not find service #20
Comments
i found out that somehow host and port is not avaible and i think the apps filtering this out. import Bonjour from 'bonjour-service'
const instance = new Bonjour()
instance.publish({ name: 'test', type: 'testservice', port: 3000 }); also tried with https://pub.dev/packages/nsd |
@lublak Thanks for highlighting, we'll have a look into this. |
Actually, I just used the example of that: String type = '_testservice._tcp';
BonsoirDiscovery discovery = BonsoirDiscovery(type: type);
await discovery.ready;
await discovery.start();
discovery.eventStream.listen((event) {
if (event.type == BonsoirDiscoveryEventType.DISCOVERY_SERVICE_RESOLVED) {
print('Service found : ${event.service.toJson()}')
} else if (event.type == BonsoirDiscoveryEventType.DISCOVERY_SERVICE_LOST) {
print('Service lost : ${event.service.toJson()}')
}
});
//await discovery.stop(); One more thing. The following bilibrary on go works great: https://github.com/grandcat/zeroconf |
this way I find the service on two different windows machines
|
I use multiple application but i find any other service but not the service created with this npm package:
https://play.google.com/store/apps/details?id=com.druk.servicebrowser
https://play.google.com/store/apps/details?id=ua.com.streamsoft.pingtools
The text was updated successfully, but these errors were encountered: