From Developer.apple you can use CNCopyCurrentNetworkInfo
It returns current network information for a given network interface.
CFDictionaryRef CNCopyCurrentNetworkInfo ( CFStringRef interfaceName );
It contains a dictionary containing information about the current network information of the interfaces. Ownership follows the creation of the rule.
Note : Available in iOS 4.1 and later .
Example:
This example works fine in a real device, it may crash in the simulator.
Add SystemConfiguration.framework
Import CaptiveNetwork as below
#import <SystemConfiguration/CaptiveNetwork.h>
Then write the code below.
CFArrayRef myArray = CNCopySupportedInterfaces();
or
Using Bonjour , the application declares itself on the local network and displays a list of other instances of this application on the network
See sample Witap application
source share