I am working on a project in which i need to get all the active IPs addresses on the network in xcode using objective c. If any one know how to get all these IPs then kindly guide me. Thanks in advance.
Is there an explicit reason you need to use objective-c and xcode? Perfectly good tools already exist to do this kind of work, such as nmap.
If you absolutely have to use objective-c and xcode, look into apples socket libraries. I am not an expert in objective-c, but your program flow would be pulling your current IP address and subnet, calculating how many possible hosts would be on your network, then use Apple's reachability classes to test every IP calculated and save which ones respond.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With