Giter Club home page Giter Club logo

ping_discover_network's People

Contributors

andrey-ushakov avatar cosismo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

ping_discover_network's Issues

more details information

Hi andrey, is it possible to know from the ip address that the connected device is apple or android ?

Getting Error if i call it twice

when i use the example you wrote and use it on a button and press it 2 times i get this:

══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
The following StateError was thrown while handling a gesture:
Bad state: Stream has already been listened to.

is there any fix?

flutter 1.9.1+hotfix.2 stable

Because every version of ping_discover_network depends on flutter any from sdk which is forbidden, ping_discover_network is forbidden.
So, because ddd depends on ping_discover_network ^0.2.0+1, version solving failed.

Will it be available for DART native?

I'm trying to use this library to get a list of IPs listening on a port, but it's flutter ONLY.
Will be a release for DART, and not Dart Flutter?

flush and close the connection

In some occasions on some devices, when you scan the network and after it's done connect to that device on the same port the connection is not closed properly.

My proposal is to add flush and close before destroy:

final Socket s = await Socket.connect(host, port, timeout: timeout); await s.flush(); await s.close(); s.destroy();

There is a way to ping only one ip address?

Hi, thanks for the lib, i tested it and it's nice!
But on my case i just have to ping test one known ip address on my network.
I read code, the doc and examples but i not found any way to run ping on ip like "192.168.0.10"

release / debug : NetworkAnalyzer.discover2 doesn't detect ip

Hi,

I am trying "NetworkAnalyzer.discover2 in the port 22 / ssh" with Android10

It s working fine with the debug version, but when I try to "release" an apk and install it on the phone, the NetworkAnalyzer.discover2 doesn't detect anything ( the same is working in debug )

Does it miss some network authorization?

Best Regards,
Frédéric

Way to get existing addresses as List

Is it possible to add existing address to List and return it from Stream?
In this example we just print existing ip addresses, but can we return they?

import 'package:ping_discover_network/ping_discover_network.dart';

final String ip = await Wifi.ip;
final String subnet = ip.substring(0, ip.lastIndexOf('.'));
final int port = 80;

final stream = NetworkAnalyzer.discover2(subnet, port);
stream.listen((NetworkAddress addr) {
  if (addr.exists) {
    print('Found device: ${addr.ip}');
  }
});

Bug: Platform Missing plugin Exception

[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method ip on channel plugins.ly.com/wifi)

Platform: MacOS

Ping_discover_network: ^0.2.0+1
MacOS: 11.2.3

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.