Comments (4)
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-testhotspot.