iphone - Is it possible to get the SSID & MAC Address of Currently connected WiFi Network in an App -


i looking way both mac adress , ssid of connected wifi network in project. have used tony million's reachability decide when user on wifi network or not , testing kenial's nicinfo find out provides iphone's wifi mac address. although both projects helped in there own way, not job done. wondering if there public api (for apple app approval) or door achieve this.

this involves few different things:

  1. getting ssid - independent of mac address issue. this, check answer: iphone ssid without private library. don't know etiquette regarding re-posting code other answers i'll link.

  2. getting mac address - since majority of networking operates @ layer 3 (which called, have guessed, network layer - http://en.wikipedia.org/wiki/osi_model) , mac address @ layer 2 (the data link layer) you'll first need ip address of gateway of wifi interface. side note - question should phrased 'how ssid of connected wifi network , mac address of wifi router/gateway'. anywho, gateway address, see answer: how wifi gateway address on iphone?

    once have that, need convert mac address using arp (address resolution protocol, protocol networks use convert ip addresses mac addresses). network interfaces don't communicate via ip, communicate via mac, happens everywhere, time. it's pretty easy access arp table on pc/mac. ios, found answer convert ip address mac address: getting arp table on iphone/ipad


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -