[英]How to go about WLAN communication on two Android Phones
Is there a way to go about getting 2 android phones to communicate to each other locally without going through a central server? 有没有办法让2部Android手机无需通过中央服务器就可以在本地相互通信? Sort of like being on WLAN? 有点像在WLAN上? I need these 2 phones to be able to sync themselves to each other when they are nearby and running the same app. 我需要这两部手机能够在附近并运行同一应用时彼此同步。
Maybe through bluetooth perhaps? 也许通过蓝牙? Just a suggestion, I'm not sure how to go about this, but an idea might be to have each app broadcast through a certain port on LAN whilst searching for the other's broadcast through the same port. 只是一个建议,我不确定该怎么做,但是一个想法可能是让每个应用程序通过LAN上的某个端口广播,同时通过相同的端口搜索其他应用程序的广播。 Once the other device has been identified, then transfer the data. 一旦确定了其他设备,就可以传输数据。
The only ways to do that with WLAN environment (and not included a AP ie infrastructure mode) 使用WLAN环境(且不包含AP,即基础架构模式)的唯一方法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.