Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find all working IPs on network wifi router ios

Tags:

networking

ios

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.

like image 807
Waris Shams Avatar asked Nov 10 '22 05:11

Waris Shams


1 Answers

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.

like image 143
crims0n Avatar answered Nov 15 '22 06:11

crims0n