BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-01-2009, 04:08 PM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default how to ping from a program?

Please Login to Remove!

Is it possible to send a ping (and get the echo response) from a Java program on the BlackBerry?

(Please not that I said "from a program". Using the ping command in the WiFi options would not be a solution.)

Thanks,
Paul
Offline  
Old 12-01-2009, 06:29 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Implementation of ping requires the abilty to create ICMP messages, which is not provided on the Blackberry.

Also, the device itself does not actually have an IP stack, so you could never send the ICMP anyway.

IMHO, this is not do-able on the Blackberry.
Offline  
Old 12-01-2009, 07:17 PM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

A somewhat expected (though not desired) response. Thanks Doug.
Offline  
Old 12-01-2009, 07:27 PM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually, thinking about it a bit more, there must be some way for a ping to be done, even without the TCP stack, since there is that Ping command in the WiFi Options menu. And that Ping command works even if WiFi is disabled.

However, I realize this does not mean that RIM gave any API to do what that command does.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.