Try to find the IP then the phone connected in wifi.

I am doing an application in which I want to find the IP address, while the phone connected in wifi, I am not able to configure what API can give me the IP address.

Is their any API through which I can get the IP address of my laptop.

That's how I have to do and do it with success:

(1) get Current Index of network

CNI int = RadioInfo.getCurrentNetworkIndex ();

(2) read APN username on current network

int apnId = cni + 1; CNI is zero-based

(3) to obtain the IP address

Byte [] ip = RadioInfo.getIPAddress (apnId);

(4) to confirm the NPC id is correct

String apnName = RadioInfo.getAccessPointName (apnId);

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Connection E2000 problems

    Hello, I use a router E2000 with three components hard in my network system.  The problem is when I try a wireless connection my computer dell laptop equipped with windows vista for the E2000 that the network name is not even on my list of wireless n

  • The mouse freezes when I type

    My mouse hair computers when I type, I would like to know how to disable what I can return to the game without using an external mouse. I know that's not a mistake. IM using a Compaq Presario CQ57 Synaptics Touchpad on PS/2 Port V7.5 Will you please

  • ON THE RAM USED IN WINDOWS 8

    HOW DO WE KNOW THAT THE RAM USED BY AN APPLICATION ON WINDOWS 8?

  • Captivate 9 alignment Quiz questions

    Hi allI'm having a little trouble and am unable to find a solution anywhere on the web (so far).Let me explain the situation:I created a master apron for my business and put everything in plans, good color, and all in the master apron looks perfect.H

  • How to change an image that I paid for images from adobe?

    How to change an image that I paid for images from adobe?