Find available wi-fi networks

15,447

As far as I know you can get the information about the current connected Wi-Fi using CNCopySupportedInterfaces and CNCopyCurrentNetworkInfo of CaptiveNetwork. You can refer to: How do I use CaptiveNetwork to get the current WiFi Hotspot Name for more information.

According to iPhone get a list of all SSIDs without private library:

Without the use of private library (Apple80211) you can only get the SSID of the network your device is currently connected to.

You could have a look at iphone-wireless project if you are interested in Apple80211. There exists a sample app "Stumber" which does exactly what you want. But you cannot use this in your app if you want to publish to App Store because as it uses private APIs. Apple rejects apps those use private APIs.

Share:
15,447

Related videos on Youtube

NTTake
Author by

NTTake

iOS Developer.

Updated on June 04, 2022

Comments

  • NTTake
    NTTake almost 2 years

    How can I find and list all the wi-fi networks in range?

  • NTTake
    NTTake about 12 years
    Thanks @Halley but I don't need the information about the current connected wi-fi I need to list all the wi-fi networks available, my iphone can detect.. I try with the iphone-wireless project but this does not work for me.. :/ any idea.
  • Marco Pace
    Marco Pace almost 12 years
    You can't take the list of wifi network, unless using private APIs... But The use of private APIs will reject your application.
  • Ashok
    Ashok over 8 years
    @MarcoPace. Any idea on stackoverflow.com/questions/34586378/… ?
  • Marco Pace
    Marco Pace over 8 years
    @AshokKumarS never used that code before because is in Swift, but for now it seems that the best solution is to check info in the /private/var/Keychains/keychain-2.db file.
  • Ashok
    Ashok over 8 years
    In normal devices or Jailbroken devices?