BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 12-01-2009, 03: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, 05: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, 06: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, 06: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

Vintage Digital DEC M3106 Line SYNC MUX Board
$29.99
Vintage Digital DEC M3106 Line SYNC MUX Board pictureVintage Sheet Metal Worker’s Monthly magazine Dec.1940
$2.99
Vintage Sheet Metal Worker’s  Monthly magazine Dec.1940  pictureVintage Rare DEC 1073D / 1996 JD3487 H 9833
$49.99
Vintage Rare DEC 1073D  / 1996 JD3487 H 9833    pictureAshcroft Paper Tester, Pat. Dec. 31,1912, Vintage, Antique
$49.0
Ashcroft Paper Tester, Pat. Dec. 31,1912, Vintage, Antique pictureVintage REED Mfg Co. No. 31 Swivel Bench Vise Pat. Dec 24, 1912 Wt 47 lb, 3.5"
$90.0
Vintage REED Mfg Co. No. 31 Swivel Bench Vise Pat. Dec 24, 1912  Wt 47 lb, 3.5






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