BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-20-2007, 08:17 AM   #1 (permalink)
New Member
 
Join Date: Mar 2007
Model: 8800
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Ip

Please Login to Remove!

is there any way to get the IP address of a blackberry device??

thanks!!
Offline  
Old 03-20-2007, 09:55 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
DiRN's Avatar
 
Join Date: Jul 2006
Model: 8900
Carrier: at&t
Posts: 320
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://www.whatismyip.com/
Offline  
Old 03-21-2007, 04:19 AM   #3 (permalink)
New Member
 
Join Date: Mar 2007
Model: 8800
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default IP programmatically from java

Excuse me, I didn't explain my problem, yesterday. I'm a java developer and I'm starting in blackberry programming. I would like to develop a client-server application where the blackberry works as server. Then, if I don't know the IP of the blackberry, the clients won't can to connect to it.

I've been studing the push application where we have to use the PIN, but I would like to use the IP, as an classical server application.

Thanks!!!
Offline  
Old 03-21-2007, 09:41 AM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
DiRN's Avatar
 
Join Date: Jul 2006
Model: 8900
Carrier: at&t
Posts: 320
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not exactly sure what you're trying to do. If a client needs to access a BlackBerry through it's IP, you'll need to use the BB to retrieve it's IP. Plus, as best I can tell, BlackBerrys don't have static IPs, in which case you'll need to refer back to the "server" BlackBerry somewhat regularly to check it's updated address.

Last edited by DiRN : 03-21-2007 at 09:45 AM.
Offline  
Old 03-21-2007, 01:54 PM   #5 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2005
Model: Many
Carrier: Sprint
Posts: 1,475
Post Thanks: 0
Thanked 6 Times in 5 Posts
Default

Blackberry's - by default - are assigned a carrier's IP which is not static or public. A push app does not require the use of a Public IP.
Offline  
Old 03-21-2007, 05:48 PM   #6 (permalink)
Knows Where the Search Button Is
 
skawt's Avatar
 
Join Date: Jan 2007
Location: San Mateo, CA
Model: 8320
OS: 4.5.0.xx
Carrier: T-Mobile
Posts: 49
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The IP of a Blackberry device is dynamic. When I first went to WhatIsMyIP.com - 66.228.120.18 and looked up my address, it was in the 166.x.x.x range. Now it's in the 216.x.x.x range. The IP can and will change. The phones do not have a static IP address. If you want to develop an app that can push to a BB device, it has to be through the PIN, rather than the IP. Otherwise you would have to set up the app on the BB side to connect to the server, report its IP to the server, and then stay connected so the server can talk back to it. Even then, I have no idea how the firewalling and proxy are handled by BlackBerry and the wireless provider.
__________________
Tick: SPOON!
Arthur: Ennh, I don't get it.
Tick: SPOON!
Arthur: Look, I'm just a sidekick.
Offline  
Old 03-21-2007, 05:53 PM   #7 (permalink)
BlackBerry God
 
jibi's Avatar
 
Join Date: Oct 2004
Location: Jibi's Secret Place
Model: 8900
OS: 4.6.1.174
Carrier: AT&T
Posts: 11,310
Post Thanks: 0
Thanked 1 Time in 1 Post
Default

The IP shown on those websites won't be the IP of your device, which is on the 10.0.0.0 subnet, but rather that of the carrier/RIM gateway (a proxy, if you will) or your company's firewall/gateway (if using MDS). If you want to see your IP address, for OS 4.2.1 devices, you can run a Diagnostics Test from the Mobile Network options. For instance, mine is 10.13.45.97. These are private, non-routeable IP addresses. Not sure how you can get it for older devices, as I've never really cared
__________________
In the beginning the Universe was created. This has made a lot of people very angry and is widely regarded as a bad move.
Offline  
Old 03-21-2007, 05:58 PM   #8 (permalink)
Knows Where the Search Button Is
 
skawt's Avatar
 
Join Date: Jan 2007
Location: San Mateo, CA
Model: 8320
OS: 4.5.0.xx
Carrier: T-Mobile
Posts: 49
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh, and it gets even better. When I use my BB browser to connect to whatismyip.com, I get 216.9.250.6, but when I connect jmirc to an IRC server and then do a /whois, I can see that my address is in the 166.x.x.x range. So it looks like there are multiple proxies in use here.

Also, the 216.9.250.6 address has a blackberry.net reverse lookup, but the 166 address has no reverse lookup.

So I think at this point it's safe to say that the only way you can really push data out to a BB device is through the PIN, and not by IP. Sorry.
__________________
Tick: SPOON!
Arthur: Ennh, I don't get it.
Tick: SPOON!
Arthur: Look, I'm just a sidekick.
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.