检测连接到无线Android设备 [英] Detecting android devices connected to Wifi

查看:99
本文介绍了检测连接到无线Android设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打一个Android应用程序,连接到WiFi网络,比如说网络SSID =ABC。假定它连接到WiFi ABC。连接到农行后,我想我的应用程序,以显示所有连接到相同的WiFi ABC电视网的Andr​​oid设备的IPS。我怎样才能做到这一点?谢谢

I want to make an android application that connects to a Wifi network, say network SSID = "ABC".Assume that it is connected to the Wifi ABC. After connecting to ABC, i would want my application to display the ips of all the android devices that are connected to the same wifi ABC network. How can i achieve that? Thanks

推荐答案

签出文件:的/ proc /净/ ARP您的手机上。

Check out the file: /proc/net/arp on your phone.

它具有所有连接到同一个网络中的其他设备的IP和MAC addreses。不过我affraid你不会能够如果他们是Android手机还是不区分。

It has the ip and MAC addreses of all the other devices connected to the same network. However I am affraid you wont be able to differentiate if they are android phones or not.

这篇关于检测连接到无线Android设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆