lan_scanner 3.0.1 copy "lan_scanner: ^3.0.1" to clipboard
lan_scanner: ^3.0.1 copied to clipboard

discontinued
outdated

A package that allows discovering network devices via multi-threaded ICMP pings.

lan_scanner #

Dart / Flutter package that allows discovering network devices in local network (LAN).

Note: This library is intended to be used on Class C networks.

pub.dev page | API reference

Getting Started #

Add the package to your pubspec.yaml:

lan_scanner: ^3.0.1

Import the library:

import 'package:lan_scanner/lan_scanner.dart';

Create an instance of the class and call icmpScan() on it:

final stream = scanner.icmpScan('192.168.0');

stream.listen((HostModel device) {
    print("Found host: ${device.ip}");
});

If you don't know what is your subnet, you can use network_info_plus and then ipToSubnet() function.

var wifiIP = await (NetworkInfo().getWifiIP())

var subnet = ipToSubnet(wifiIP);

Features and bugs #

Please file feature requests and bugs at the issue tracker.

41
likes
0
pub points
87%
popularity

Publisher

verified publisherivirtex.dev

A package that allows discovering network devices via multi-threaded ICMP pings.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_icmp_ping

More

Packages that depend on lan_scanner