How to set a ping in real iOS device via Swift

Hey fellas, I'm trying to make a app that sends a Ping sinal in iOS and returns the result, but I don't have any idea if there is a way to do that, and which library

I must use to set this kind of thing. If anybody knows a way to do that in real iOS please help me!

Hi,


Do you actually want to ping something? or do you want to check if somewhere is reachable. I used this link a moment ago on another question, it might help you. it checks if a host is reachable.


https://stackoverflow.com/questions/30743408/check-for-internet-connection-with-swift

You can send pings using the technique shown by the SimplePing sample code.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi Eskimo, I do need to send pings so is there a comparable example for SwiftUI. All the Best

How to set a ping in real iOS device via Swift
 
 
Q