views:

353

answers:

1

Odd question, I know I can do this in OS X Objective C, but can you run a ping against an IP or URL on the iPhone? Is the framework there to support it? Same with doing a traceroute.

+1  A: 

If you follow Apple's Reachability example, you can both check for the existence of the network and also ping a domain.

http://developer.apple.com/iphone/library/samplecode/Reachability/Introduction/Intro.html

This actually has a code snippet using the reachability example: http://stackoverflow.com/questions/798454/how-to-write-a-simple-ping-method-in-cocoa-objective-c

iWasRobbed
thank you for the tip
mootymoots