Comments (3)
This seems like a local issue on your side. I just tried both Windows and Android example clients while running a fake server on MacOS with dns-sd -R TestService _http._tcp . 3000
and could successfully see the service as can be seen from the screenshot below:
Which means flutterNsd.stream
emits services as they're discovered.
What version of Flutter are you on?
Are you using the latest version of flutter_nsd?
A few tips on how to troubleshoot the issue:
-
Try the pre-built example clients from Github:
Windows: https://github.com/Nimrodda/flutter_nsd/suites/5226672395/artifacts/160346656
Android: https://github.com/Nimrodda/flutter_nsd/suites/5226672392/artifacts/160345440
The pre-built clients are configured to discover services of type:_http._tcp.
for example a HP Wifi Printer should appear be discovered. -
Microsoft has a command line tool to discover services: https://github.com/microsoft/FindDevice/releases/tag/v1.0.0
Example command:FindDevice.exe --service _http._tcp.local
-
If you can't get any service discovered, you can try a fake service like the one I mentioned above from MacOS (
dns-sd
). I bet there's a similar tool for Windows as well.
from flutter_nsd.
Thank you for help so far.
I tried running the pre-compiled app and still did not find any services.
I then downloaded FindDevice and ran as suggested, it found
Discovered: osmc.local 192.168.101.100
Once I started up the dns-sd with the command you provided FindDevices showed
Discovered: {fakeDevice}.local 192.168.101.169
Discovered: osmc.local 192.168.101.100
And the flutter example app was able to find the local fake device from dns sd
Flutter 2.10.1
flutter_nsd - I ran with a package install first, then currently I'm using the latest version of git, but since there's issues finding the osmc service with the pre-built package, I don't think it's something on my side, maybe just the way the service is presenting itself to NSD.
from flutter_nsd.
maybe just the way the service is presenting itself to NSD.
Yes, that seems like the case.
My HP WiFi printer shows up in the example app as well.
from flutter_nsd.
Related Issues (20)
- Notify when service is lost HOT 5
- NetServiceBrowser is deprecated on iOS/MacOS
- Windows: TXT records are returned as string instead of UInt8List, causing failure
- Windows: txt records are sent as [key: key] instead of [key: value] HOT 1
- Stream<NsdServiceInfo> doesn't add service If msdn server hass service txt is added HOT 5
- NsdServiceInfo Class should have IP HOT 3
- java.lang.IllegalArgumentException: listener not registered HOT 3
- Any plans for Linux support? HOT 1
- The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher HOT 4
- stopDiscovery() stops, but generates an error HOT 2
- missing permission for some Android versions HOT 2
- Error on executing command 'flutter build windows' HOT 2
- stopDiscovery Not working giving below exception HOT 4
- Windows build is failing
- startDiscoveryFailed every time HOT 1
- MacOS and iOS not returning any hostAddress HOT 1
- getting NsdErrorCode.startDiscoveryFailed when hot restart app
- Services are not discovered on Android HOT 2
- On Android, the IP address is returned in the hostname field of NsdServiceInfo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_nsd.