Comments (4)
Hi @andreadaoud,
why would you want to call the method directly? You can just specify IpLookupType.any
when calling startDiscovery. That way the discovered services will contain all their IP addresses. See also here.
from nsd.
Thank you for your quick response and great work!
On Apple platform we can connect to the service using xxxxx.local
address. But, on Android, especially older versions, we cannot connect with .local
address. My use case involves saving the xxxx.local
address to config file and connect to it later. Running startDiscovery
every time to get address is an option, but from my point of view, it sounds better to resolve it directly.
from nsd.
Ok, I get that. And is there any reason why you don't want to use dart:io's lookup method directly:
final addresses = await InternetAddress.lookup(host, type: InternetAddressType.any)
from nsd.
Closing this since there seems to be an easy way to do this with basic Flutter functionality. Please feel free to open another issue if this doesn't solve your issue or you're missing anything else!
from nsd.
Related Issues (20)
- Windows - Discover Service Listener Service name is not correct HOT 4
- mDNS Service registered with nsd not resolving correctly. HOT 2
- Select on which network interface to search HOT 1
- Windows: when the device name contains Chinese, the client cannot find the service.
- Flutter windows app crashes randomly on start HOT 8
- NsdError (message: "missing required configuration HOT 11
- stopDiscovery Not working giving below exception HOT 3
- nsd 2.3.1 Not compatible uuid 4.1.0 HOT 1
- (warning) 'com.haberey/nsd' channel message on a non-platform thread HOT 1
- `stopDiscovery` should `dispose()` the `Discovery` HOT 3
- Android: failure on unregistration does not report back to dart side HOT 1
- [Question] Unregistering service when app crushes or when a user terminated app in force. HOT 2
- Works on iOS sim but not on actual device HOT 1
- Include permissions as part of the dependency HOT 1
- Add Linux support HOT 1
- pub.dev Changelog tab is reversed
- Get all serviceTypes does not work
- Error running inside isolate
- Discovery not working on macOS
- '_services._dns-sd._udp' not working on real IOS device. HOT 3
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 nsd.