Welcome to the NOKIA's developer Discussion Board,
We have only getAddress() method which will give you host name.
After that you have to call the web-service which will give you IP address from host name.
Sorry, but I'm not clear. Can you give me a simple example using this method?
You can establish a socket connection between Client Device and your server (with which your widget is connected).
Then you will definitely have an access for server IP Address Info, Port Info.
RSocket::RemoteName() , Where remote name is remote host name.
There is no way to retrieve your IP address by using platform services. Basically what you would have to do is to create a short code snippet onto your server, that echoes the public IP address back to the widget . In the widget side you should then issue a XMLHttprequest to server and display the response.
You could use some ready made service as well, like http://ipinfodb.com/ip_location_api_json.php, if you are not keen on server side programming.
You can test the output by copying following line to your browsers address bar: http://ipinfodb.com/ip_query.php?out...timezone=false
Why would a widget need to know the device's IP address anyway? You still can't connect to the address from "outside", and if the device is not stationary (it is moving), the cellular network will give it a new IP address, if it moves/roams to a different routing area within the operator's network (and if it roams to a foreign network, it'll also get a new IP address, and the connection will break).