-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Works fine with Wifi but not 4G #38
Comments
I'm actually able to reproduce it with 4G. I get the I don't get this issue when pinging domain names on 4G. I know this project isn't maintained anymore, which is a shame. But for the record I reopen this and leave it here. |
I was able to pinpoint it exactlly. In method
The part that fails is And then because But when on Wifi we have different values that pass this conditional correctly: |
I had the same issue, but I resolved the issue by changing the initialisation. Throws error SwiftPing(host: "ipAddress",
config: DAPingConfiguratio(interval: 0.5, with: 5),
queue: .global()) Works: SwiftPing(ipv4Address: "ipAddress",
config: DAPingConfiguratio(interval: 0.5, with: 5),
queue: .global()) |
This is true, it works on Wifi but not on 4G. In my case, on 4g, the error is always timeout |
@PetterVangBraka But you assume that IPv4 is available. What if I want to ping a domain name, which can have many IPv4 addresses? for example facebook.com? |
@f-gonzalez Have you found a different solution for this? I'm still looking. A shame this repo has been abandoned. |
Hello,
The following code works fine on Wifi but throws
PingError.hostNotFound
exception on 4G.That makes no sense though, because the same host IP works on Wifi, but not on 4G.
The text was updated successfully, but these errors were encountered: