Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dpiol

macrumors newbie
Original poster
Feb 27, 2008
6
0
Switzerland
Hi

I want to write a kind of an IP scanner, telling me which devices are active in a subnet. This in Objective-C for Mac OS X.

Can you point me in the right direction? What are the appropriate Objective-C classes to look for?

thanks

:apple:
 

mfram

Contributor
Jan 23, 2010
1,307
343
San Diego, CA USA
Keep in mind that Ethernet switches limit the network traffic any single port will see. Even if your network card on your machine is set to promiscuous mode, your machine still won't see all subnet traffic unless you have a managed network switch that supports a monitor mode.
 

subsonix

macrumors 68040
Feb 2, 2008
3,551
79
Code:
ping 255.255.255.255

Or 192.168.n.255 etc for a specific local subnet.

For a GUI version check out NetworkUtility, both are included in OS X.
 

robvas

macrumors 68040
Mar 29, 2009
3,240
629
USA
Keep in mind that Ethernet switches limit the network traffic any single port will see. Even if your network card on your machine is set to promiscuous mode, your machine still won't see all subnet traffic unless you have a managed network switch that supports a monitor mode.

He wants to write a scanner not a sniffer
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.