是否有可能为Android设备通过接入点交换信息,并请求连接的设备的清单,该AP? [英] Is it possible for android devices to exchange messages over an access point and request a list of connected devices to this AP?

查看:135
本文介绍了是否有可能为Android设备通过接入点交换信息,并请求连接的设备的清单,该AP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发应与也连接到这个接入点设备连接到一个开放的WiFi接入点和​​交换消息的应用程序。让我们假设接入点是开放的,没有任何限制。是否有可能要求其连接到它的设备的IP地址的列表?那么,如果我们有地址,才有可能启动与该设备的连接和交换信息?你见过任何similiar项目/应用程序? (是否有可能与常规接入点没有做黑客?)

I am developing an application which should connect to an open WiFi access point and exchange messages with devices that are also connected to this access point. Lets assume the access point is open and has no restrictions. Would it be possible to request a list of the IP addresses of the devices which are connected to it? Then if we have the address would it be possible to initiate a connection and exchange messages with that device? Have you seen any similiar projects/apps? (Is it possible to do with regular access points without hacking?)

谢谢,任何片段/想法将是非常美联社preciated! :)

Thanks, any snippets/thoughts will be highly appreciated! :)

推荐答案

如果您对所有客户的兴趣在您运行应用程序可以尝试使用简单的UDP广播。在每个客户端上的每个应用程序你只是听某个特定端口上的certian UDP数据包,一旦收到它的回复发件人,这样就会知道,有一个应用程序监听那里。之后,它应该很容易建立定期的TCP连接。因为UDP广播通常不会被路由此方法仅适用于局域网。它是常用的游戏来搜索局域网活动服务器。

If you have your application running on all clients your interested in you could try to using a simple UDP broadcast. In every application on each client you'd just listen for a certian UDP packet on a specific port and once you receive it respond to the sender so that it will know that there's an app listening there. After that it should be easy to establish regular TCP connection. This method works only for LANs since UDP broadcasts are usually not routed. It is commonly used by games to search for active servers in local area networks.

这篇关于是否有可能为Android设备通过接入点交换信息,并请求连接的设备的清单,该AP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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