无线搜索连接到同一网络的设备,即除ACCES点(Android版) [英] wifi search for the devices connected to the same network i.e other than acces point(for android)
问题描述
我要进行修改,以我的项目,现在项目的状态是..... 它是搜索可用的WiFi网络,并显示该列表与网络的信息这个作品properly.Now我想搜索并看到连接到网络的设备的细节。 有没有办法找到这些设备? 您的评论将是对我来说很有用,谢谢。
i want to make a modification to my project and right now the project status is..... it is searches the available WiFi networks and shows the list with info of the network this works properly.Now i want to search and see the details of the devices connected to the network. Is there any way to find these devices ? Your comment will be useful for me, Thanks.
推荐答案
你想找到一个特定的设备?或者你需要的所有连接的设备的清单?我不认为第二个是可能的。
Would you like to discover a specific device ? Or you need the list of all connected devices? The second I don't think is possible.
修改
发现特定设备:
使用 UDP广播
。有一定的参考,可以发现<一href="http://http://www.nakov.com/inetjava/lectures/part-1-sockets/InetJava-1.5-UDP-and-Multicast-Sockets.html"相对=nofollow>这里!
Discovering specific devices:
Using UDP Broadcast
. Some reference can be found here!
有被一些设备支持一些协议(路由器,硬盘,等等),如 UPNP !
There are some protocols that are supported by some devices( routers, HDD, etc...), like UPNP!
如果你开发,你将要为其发现你可以创建一个 UDP
服务器侦听特定端口上的设备上的软件。
您的客户端将只发送播出
消息,端口和您的服务器
将发送您所需要的信息的响应。
这里的是一个简单的例子。
If you develop a software on the device which you would like to discover you could create a UDP
server listening on a specific port.
Your client will just send a broadcast
message on that port and your Server
will send a response with the information you need.
Here it is a simple example.
这篇关于无线搜索连接到同一网络的设备,即除ACCES点(Android版)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!