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.
来源:https://stackoverflow.com/questions/3212038/can-you-do-a-ping-or-traceroute-command-on-iphone