How to find network details in the ipad application? [duplicate] - iphone

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to check for an active Internet Connection on iPhone SDK?
I have to find to which network the ipad is currently connected through the ipad application. is it possible through the reachability code?

Do you mean the SSID of the wifi network?
That's not possible.
For checking internet/intranet connection, use the reachability, and specify your own server (on the intranet) or a public server (on the internet) to check if you can reach it.

Related

What are the ways available in iOS to communicate between one to many devices? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to know the different options which are available in iOS to communicate between one to many devices.
For example, one iPhone or iPad acts as server and sends instructions to more than 100 iPads or iPhones.
Can I get some ideas or suggestions on this?
You can use TCP or UDP over a local WLAN.
It is quite easy. To discover the "Server"-device create a Bonjour Service on this device and search for the service with the client-devices
You can then retrieve the IP Address of the device and start communication.
This is the fastest and easiest solution. It has just one requirement, all Devices need to be in the same WLAN.
The additional bonus is that this layout is accessible for all devices having WLAN. So also Android, computers and all the other stuff available.
An optional way would be to do this over a dedicated server backend.
And every device keeps a opened stream to this server to get realtime updates.
Then you don't have the requirement that every device needs to be in the same WLAN. It could also access the Server via mobile network or whatever.
Bluetooth is no option because there are too many devices you want to handle.

sample code to ping an IP address in objective-c(Xcode) [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to write a simple Ping method in Cocoa/Objective-C
check internet connection in cocoa application
I want to ping an IPaddress and know whether it is currently in network or not.I am developing iPad/Iphone application in Xcode(objective-C).Please help me with sample code as I am new to this technology.
I don't want to download other application to ping IPaddress.
Sushma

Sniff iphone network packets? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How to capture iphone network packets ?
im using windows
is it possible to capture its packets through wifi ?
Use mitmproxy
You can set this up as a proxy server, and then set the proxy on your iPhone to this. You should be able to see all the traffic, included encrypted traffic. This is the program used to determine that Path was downloading the entire Contacts database for its users.
You can use WireShark or Cain & Abel. You would connect your phone to wifi and sniff the packets based on it's IP.
The way I do this with OS X is to set up an ad-hoc wifi network on my Mac, connect the phone to it and share my wired connection with the ad-hoc wifi network. Then I can capture on the wifi card's interface and see traffic going to the iPhone. Presumably you can do a similar thing with Windows.
You can use Paros to set a proxy on your computer and route your iPhone through that proxy. Paros will then show you all the requests being made through the proxy from you iPhone. There is a Step-By-Step guide here: Sniff your iPhones network traffic with Paros.
I was searching for the same thing and came across these similar questions:
How to show iphone apps sniffing HTTP Requests
iPhone and WireShark
The second link shows the Paros solution.

Bluetooth printer connectivity with iPhone Application [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Is it possible to connect iphone to printer via bluetooth?
Can any body suggest how can we connect bluetooth printer with our iPhone Application.
So that i can take printout of text i have typed.
Thanks in Advance
Kamleshwar
iOS currently \ does not support Bluetooth printing

Internet connection [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
iPhone SDK Internet connection detection
What is the best way to determine whether there is an available Internet connection for a iphone app. (Programatically of course) I want to disable/hide certain functions if the user is not connected to the Internet.
Can anyone help me?
Thanks in advance.........
Can you have a look at below post it contains couple of useful post for achieving Reachability code make works.
http://www.iphonekicks.com/tags/Reachability