Syed Muhammad Hassan
Syed Muhammad Hassan

Reputation: 155

How to get the device name and type of device while scan local network?

I am scanning my local network and i am getting their ip and their mac address, but i want also the device name like "Hassan's Iphone" and type of device, so help me how can i get this.

thanks in advance

Upvotes: 5

Views: 3239

Answers (1)

Randika Vishman
Randika Vishman

Reputation: 8124

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. https://stackoverflow.com/a/27099363/1752988
  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

I think it's better next time before you put a StackOverflow Question please research on the web using Google and StackOverflow both together!

Upvotes: 3

Related Questions