Giter Site home page Giter Site logo

ivirtex / lan_scanner Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 4.0 400 KB

Dart / Flutter package that allows discovering network devices in local network (LAN) via multi-threaded ICMP pings.

Home Page: https://pub.dev/packages/lan_scanner

License: BSD 3-Clause "New" or "Revised" License

Dart 35.95% Kotlin 0.29% Swift 3.30% Objective-C 0.08% CMake 17.44% C++ 35.58% C 1.55% Ruby 5.80%
dart flutter flutter-plugin

lan_scanner's Introduction

Hi there ๐Ÿ‘‹

My Skills

Metrics

lan_scanner's People

Contributors

ivirtex avatar rikitonoto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lan_scanner's Issues

Undefined name 'scanner'.

final stream = scanner.icmpScan('192.168.0', progressCallback: (progress) {
    print('Progress: $progress');
});

stream.listen((HostModel device) {
    print("Found host: ${device.ip}");
});
lib/main.dart:146:18: Error: Undefined name 'scanner'.
  final stream = scanner.icmpScan('192.168.0', progressCallback: (progress) {
                 ^^^^^^^
Failed to package /Users/jordandalton/StudioProjects/goldshell.
Command PhaseScriptExecution failed with a nonzero exit code

Could not build the application for the simulator.
Error launching application on iPhone 13.

What is the difference between lan_scanner and network_tools

I joined the work on network_tools before a couple of months and now I have found this package.

If my test is correct the async searching that I have implemented there is faster for pinging IP but as I didn't look at the code here maybe this package doing staff differently or has more options.

Can you check network_tools and tell me about the differences?, it is waste of time for all of us to build the same thing and maintain it separately.

iOS Support

Hi! I'm the author of the dart_ping package and I noticed you have a warning on your readme that states that your package does not support iOS. I also recall you opened an issue on my package about this and we were running into the same tradeoff where we either have ios support and depend on flutter and lose native dart support or we lose ios support to preserve native dart.

I just wanted to chime in and say you can probably point your users towards my dart_ping_ios package since they should still be able to use this to enable your package on iOS without any changes to your package. They just need to import it and call the registration function. Granted, this will require the flutter sdk but at least then the choice is up to your users rather than you as an author.

Just a friendly heads up in case it helps. Let me know if you have any questions about how that works. :)

Missing permission in AndroidManifest.xml (release)

After adding the package to my project, it works fine except when trying to run it as a release version. The reason is the missing permission in the AndroidManifest.xml in the release folder, which took me a long time to figure out. Maybe there is a way to add the permission automatically so that future users of the library don't have to figure it out?

Link to repo is missing in pub.dev

Repository (GitHub) button exist in the right side:

image

Repository (GitHub) button is missing in the right side:

image

I saw that the Homepage button is linked to this repo but that functionality is more suited for Repository (GitHub) button.

Does this package support on Windows?

Hi, ivirtex.
When I tried this package on Windows Application,
I occur the error like follow.

[ERROR:flutter/runtime/dart_isolate.cc(1098)] Unhandled exception:
FormatException: Unexpected extension byte (at offset 16)
#0      _Utf8Decoder.convertChunked (dart:convert-patch/convert_patch.dart:1851:7)
#1      _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:314:28)
#2      _Utf8ConversionSink.add (dart:convert/string_conversion.dart:310:5)
#3      _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#4      _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:111:24)
#5      _RootZone.runUnaryGuarded (dart:async/zone.dart:1593:10)
#6      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#7      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#8      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#9      _StreamController._add (dart:async/stream_controller.dart:648:7)
#10     _StreamController.add (dart:async/stream_controller.dart:596:5)
#11     _RootZone.runUnaryGuarded (dart:async/zone.dart:1593:10)
#12     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#13     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#14     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#15     _StreamController._add (dart:async/stream_controller.dart:648:7)
#16     _StreamController.add (dart:async/stream_controller.dart:596:5)
#17     _Socket._onData (dart:io-patch/socket_patch.dart:2355:41)
#18     _RootZone.runUnaryGuarded (dart:async/zone.dart:1593:10)
#19     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#20     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#21     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#22     _StreamController._add (dart:async/stream_controller.dart:648:7)
#23     _StreamController.add (dart:async/stream_controller.dart:596:5)
#24     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1877:33)
#25     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1334:14)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#28     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:123:13)
#29     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:193:5)

Doesn't this package support on Windows?

P.S. I love your applications. especially networkarch-flutter is my favorite.

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.