Giter Club home page Giter Club logo

Comments (4)

ParagRKadam avatar ParagRKadam commented on July 23, 2024

I too have the same question. Along with that I would also want to know whether is it possible to get the list of all the client devices not only connected to the hotspot but also available within hotspot range.

from android-testhotspot.

luispereira avatar luispereira commented on July 23, 2024

Hi @ParagRKadam, until now I could only see that there is a file which is updated with all the clients, but is not 100% updated (meaning that might exists clients on the file which are no longer connected). This file does not require any additional permission to access it. This file is a on
/proc/net/arp.
There is also another file, which is available for rooted devices which is updated every time a client connects and disconnects on /data/misc/dhcp/dnsmasq.leases

from android-testhotspot.

ParagRKadam avatar ParagRKadam commented on July 23, 2024

If you want to get the list of connected clients then you should use this library ->
https://github.com/nickrussler/Android-Wifi-Hotspot-Manager-Class
/proc/net/arp has the list all the current and previous clients as you said hence it does not suit my usecase and root is not an option hence i cannot use the file /data/misc/dhcp/dnsmasq.leases.

from android-testhotspot.

luispereira avatar luispereira commented on July 23, 2024

Hi @ParagRKadam, you cannot know clients in range which are not connected.
However, you can force all connected clients to respond by udp wifi broadcast.

from android-testhotspot.

Related Issues (4)

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.