I'm making an app with NativeScript and I need to get the local IP Adress of the device. I read in another page that you can access native API's, and they did this:
var app = require("application");
var context = android.content.Context;
var wifiManager = app.android.context.getSystemService(context.WIFI_SERVICE);
var wInfo = wifiManager.getConnectionInfo();
var ip = wInfo.getIpAddress();
I just started with NativeScript so I barely understand what that means.
In the code above, the IP is 251701440, and that's neither the local ip nor the public ip.
Is there any way to get the local IP of the device?