Skip to content

[Request]: [network_info_plus] Add support for non wifi networks like as usb and bluethoot hospot #2750

Closed

Description

@yhojann-cl

Plugin

network_info_plus

Use case

https://github.com/YowFung/flutter_interfaces_plus Lists network card interfaces but network_info_plus show only wifi networks.

Proposal

Find all phisical and virtual network interfaces and find ip address for each one, by example, when share a network with the usb interface without wifi, using only the 3g or 4g internet connection, the expected is see two interfaces: 3g with the mac, address, etc and the usb hospot with the default broadcast, gateway and default dns server, loopback local interface, etc, like as ifconfig command:

me@pc:~/ $ adb shell
a73xq:/ $ uname -a
Linux localhost 5.4.233-qgxx-xxxxxxxx-abxxxxxxxxxxxxx #1 SMP PREEMPT Sat Feb 10 04:28:52 KST 2024 aarch64 Toybox
a73xq:/ $ ifconfig                                                                                                                                                                                         
dummy0    Link encap:UNSPEC  
          inet6 addr: fe00::xxxx:xxxx:xxxx:xxxx/64 Scope: Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:2793 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:0 TX bytes:532020 

rmnet_ipa0 Link encap:UNSPEC  
          UP RUNNING  MTU:9216  Metric:1
          RX packets:237885 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:283949 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:9957889 TX bytes:57558124 

wlan0     Link encap:UNSPEC    Driver icnss2
          inet addr:192.168.xxx.xx  Bcast:192.168.xxx.255  Mask:255.255.255.0 
          inet6 addr: 2800:xxx:xxxx:xxxx:xxxx:5aff:fe65:35b9/64 Scope: Global
          inet6 addr: fe80::xxxx:xxxx:xxxx:35b9/64 Scope: Link
          inet6 addr: 2800:xxx:xxxx:xxxx:xxxx:fb94:be77:6648/64 Scope: Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19236399 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:10371098 errors:0 dropped:906 overruns:0 carrier:0 
          collisions:0 txqueuelen:3000 
          RX bytes:22536808160 TX bytes:5731479254 

lo        Link encap:UNSPEC  
          inet addr:127.0.0.1  Mask:255.0.0.0 
          inet6 addr: ::1/128 Scope: Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:81994 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:81994 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:169451848 TX bytes:169451848

Actually the package should be called wifi_info_plus instead of network_info_plus.

Activity

  1. LBYPatrick commented on Mar 25, 2024

    @LBYPatrick
    Contributor

    Good idea! Feel free to open a PR and keep us posted on how it goes!

  2. miquelbeltran commented on Mar 28, 2024

    @miquelbeltran
    Member

    Duplicated of #420

  3. locked as resolved and limited conversation to collaborators on Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions