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
2010-07-09 11:52:12
thank you for the tip
mootymoots
2010-07-09 12:16:20