How to get IP when connected to Wifi on BlackBerry?


How to get IP when connected to Wifi on BlackBerry?



I'm trying to my application to retrieve the IP address when it's connected to the Wifi network but I'm not too sure how to get that done.

I've looked at RadioInfo and there's a function getIPAddress(int apnId). Is this the right one?

I've also looked at WLANInfo but that one doesn't seem to have any IP related functions.

Anyone can help me with this?




Embedding Google Waves in Blogs and Search Engines

1:



can you have multiple blogs in a confluence WIKI
klyubin wrote:.
retrieve posted blog content in wordpress based on id or permalink
[...] the best solution (as it relies on documented behavior) is to open a udp socket (or TCP server socket) over WiFi and query its IP address.


2 Parent BLOGs in DNN 5.x?
Another hack is to get the APN ID for the "MagicRudyAPN.rim" using getAccessPointNumber, and then query its IP address using getIPAddress.


Is it ever a bad idea to publish a sitemap for a blog?
MagicRudyAPN.rim seems to be a virtual/fake APN for accessing/addressing the IP tunnel to the WiFi network..
Starting bbcomm in Java v3 Bloomberg API
int apnId = RadioInfo.getAccessPointNumber("MagicRudyAPN.rim"); byte[] ipByte = RadioInfo.getIPAddress(apnId); String ip = ""; for (int i = 0; i < ipByte.length; i++) {     int temp = (ipByte[i] & 0xff);     if (i < 3)     	ip = ip.concat("" + temp + ".");     else {     	ip = ip.concat("" + temp);     } }
.
Porting TurboPower Blowfish to .Net


Create a padded box mixin with Compass and Blueprint


87 out of 100 based on 57 user ratings 1257 reviews

@