Skip to content
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

get device name too #10

Open
Shiba-Kar opened this issue Oct 25, 2020 · 3 comments
Open

get device name too #10

Shiba-Kar opened this issue Oct 25, 2020 · 3 comments

Comments

@Shiba-Kar
Copy link

No description provided.

@alittlebitofit
Copy link

yes please

@tantzygames
Copy link

try this:

import 'dart:io';
for (var ip in wifiDevices) {
    InternetAddress add = await InternetAddress(ip).reverse();
    if (add.host != null && add.host != ip) {
      print('found name ${add.host}');
    }
}

@phan-dev
Copy link

try this:

import 'dart:io';
for (var ip in wifiDevices) {
    InternetAddress add = await InternetAddress(ip).reverse();
    if (add.host != null && add.host != ip) {
      print('found name ${add.host}');
    }
}

@zerogravityent
It does not work on iOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants