Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Regular Contributor
Posts: 75
Registered: ‎11-30-2012
My Device: curve
My Carrier: airtel
Accepted Solution

Getting the IP address of the device

How to programatically get the IP address of the device?

 

-thanks

Highlighted
Contributor
Posts: 43
Registered: ‎01-05-2013
My Device: Dev Alpha
My Carrier: Telenor Hungary

Re: Getting the IP address of the device

Hi,

 

you can get it with QNetworkInterface class.

Reference is here:

http://developer.blackberry.com/cascades/reference/qnetworkinterface.html

 

cheers,

chriske

--------------------------------------------------------------
If my post was helpful or it was the solution for Your problem, please don't forget to give me a like, and mark my post as a solution. Thanks!