扫描本地网络时如何获取设备名称和设备类型?

Sye*_*san 5 iphone ios

我正在扫描我的本地网络,我正在获取他们的 IP 和 MAC 地址,但我还想要设备名称,例如“Hassan's Iphone”和设备类型,所以请帮助我如何获取此信息。

提前致谢

Ran*_*man 3

I think you need to have a look at something like in the following link:

We deal with anything wireless on the iPhone: 802.11, GSM, and Bluetooth. Stumbler lets you view the wireless networks in your area. While right now Stumbler only handles 802.11 networks, soon you should see Bluetooth and GSM capabilities as well. Stumbler is still in a early Alpha stage, but it is fully functional, and pretty stable

However they also thoroughly mention that:

Stumbler can not be distributed through the app store, as it uses private APIs!

Following is the link to the blog post where I found the above Stumbler Google Code Project!

So I'm not sure even if what you require is possible to do, it won't be able to publish through the Apple App Store.

You better read the following StackOverflow answers too:

  1. Programmatically finding IP address of another computer on LAN
  2. gethostbyname xcode issues
  3. /sf/answers/1896955441/
  4. How Scan devices in a LAN network
  5. Another blog post which mentioned about Stumbler tool
  6. iOS. get other device/computer name by IP in the same local network
  7. iOS - How to get device make and model?
  8. LAN-Scan Git Hub Project

我认为下次在提出 StackOverflow 问题之前,请同时使用 Google 和 StackOverflow 在网络上进行研究!