SimplePingHelper icon indicating copy to clipboard operation
SimplePingHelper copied to clipboard

All Pings Fail in iOS 5.1 Simulator and on device

Open pmwilliamson opened this issue 13 years ago • 10 comments

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).

pmwilliamson avatar May 29 '12 14:05 pmwilliamson

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

chrishulbert avatar May 29 '12 22:05 chrishulbert

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.

jalakoo avatar Oct 29 '12 18:10 jalakoo

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.

chrishulbert avatar Oct 29 '12 22:10 chrishulbert

it works for 6.1 simulator but fails for all ip addresses in iphone.

dhavalyours avatar Aug 22 '13 14:08 dhavalyours

Its works nice for me, iOS6 simulator, iOS6 device, iOS7 simulator.

idikic avatar Aug 22 '13 15:08 idikic

It works on simulator but does not work on actual iphone.

dhavalyours avatar Aug 22 '13 16:08 dhavalyours

Couldn't get it to work on simulator or device, it never fires the pingResult callback function. What a shame.

jtoth55 avatar Sep 04 '13 15:09 jtoth55

You must call SimplePing.Start() from the main thread.

https://github.com/theonlylawislove/MonoTouch.SimplePing/commit/fcd18ac00bcd6ca9ea17be96ea5b3ed712b770b6

pauldotknopf avatar Oct 30 '13 14:10 pauldotknopf

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).

rashidasgari avatar Dec 06 '14 16:12 rashidasgari

If you want to run in other thread such as GCD, you should add runloop in your code as like : [[NSRunLoop currentRunLoop] run];

yangjunsss avatar Dec 23 '15 04:12 yangjunsss