Code Monkey home page Code Monkey logo

Comments (3)

Nimrodda avatar Nimrodda commented on June 1, 2024

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:

image

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:

  1. 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.

  2. 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

  3. 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.

tonym128 avatar tonym128 commented on June 1, 2024

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
image

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.

Nimrodda avatar Nimrodda commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.