SimplePingHelper
SimplePingHelper copied to clipboard
All Pings Fail in iOS 5.1 Simulator and on device
It looks like didReceivePingResponsePacket is never called. The timeout occurs and the ping fails. Even if I change the timeout to 10 seconds it is never fired once.....any ideas?
If you implement the SimplePing delegates in a view controller it works as expected.
I have tried multiple IP's that I know are up on my local network (I can ping them in Terminal).
Hi, Sorry i've got no idea why it isn't working for you.
On Wed, May 30, 2012 at 12:24 AM, pmwilliamson < [email protected]
wrote:
It looks like didReceivePingResponsePacket is never called. The timeout occurs and the ping fails. Even if I change the timeout to 10 seconds it is never fired once.....any ideas?
If you implement the SimplePing delegates in a view controller it works as expected.
I have tried multiple IP's that I know are up on my local network (I can ping them in Terminal).
Reply to this email directly or view it on GitHub: https://github.com/chrishulbert/SimplePingHelper/issues/1
I had the same issue across simulators 5.0, 5.1 & 6.0. Tried replacing the included SimplePing files with the most recently updated version from Apple, but still no joy.
Hi, Works for me and other people, so i'm forced to assume there's something odd with your network configuration possibly? Good luck
On Tue, Oct 30, 2012 at 5:05 AM, jalakoo [email protected] wrote:
I had the same issue across simulators 5.0, 5.1 & 6.0. Tried replacing the included SimplePing files with the most recently updated version from Apple, but still no joy.
— Reply to this email directly or view it on GitHubhttps://github.com/chrishulbert/SimplePingHelper/issues/1#issuecomment-9879116.
it works for 6.1 simulator but fails for all ip addresses in iphone.
Its works nice for me, iOS6 simulator, iOS6 device, iOS7 simulator.
It works on simulator but does not work on actual iphone.
Couldn't get it to work on simulator or device, it never fires the pingResult callback function. What a shame.
You must call SimplePing.Start() from the main thread.
https://github.com/theonlylawislove/MonoTouch.SimplePing/commit/fcd18ac00bcd6ca9ea17be96ea5b3ed712b770b6
Have you changed the default ip address? The example project uses an ip address of 192.168 something. Try replacing it with 8.8.8.8 (google DNS).
If you want to run in other thread such as GCD, you should add runloop in your code as like : [[NSRunLoop currentRunLoop] run];