IP scanner

Discussion in 'Mac Programming' started by dpiol, Jan 18, 2014.

  1. dpiol macrumors newbie

    Joined:
    Feb 27, 2008
    Location:
    Switzerland
    #1
    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:
     
  2. robvas macrumors 68020

    Joined:
    Mar 29, 2009
    Location:
    USA
    #2
  3. mfram macrumors 65816

    Joined:
    Jan 23, 2010
    Location:
    San Diego, CA USA
    #3
    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.
     
  4. subsonix macrumors 68040

    Joined:
    Feb 2, 2008
    #4
    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.
     
  5. robvas macrumors 68020

    Joined:
    Mar 29, 2009
    Location:
    USA
    #5
    He wants to write a scanner not a sniffer
     

Share This Page