且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

以编程方式将设备连接到Android中的同一wifi网络?

更新时间:2021-06-27 22:13:34

请遵循以下任一条件:

方式1:

如果您是想查看连接到当前WiFi连接的所有设备(并且您不想进行Ad Hoc网络连接),那么您实质上是想运行网络扫描仪.

If you mean you want to see all the devices connected to your current WiFi connection (and you are not trying to do Ad Hoc networking), then you are essentially wanting to run a network scanner.

周围有很多这样的东西.这有一个在github上可用的源代码

There are a bunch of these around. This one has the source available on github

http://rorist.github.com/android-network-discovery/

方式2: 请参阅如何检测通过Android App在WiFi网络中连接的所有设备