Getting a device's IP address with the Javascript API

Solved
OM
Oleg Mazur
millenniumtecfreez

Is there any way to get a device's IP address using SOTI's Javascript API? When I call the below function from within the API, I get back "undefined", but getting the same info using the %HOSTNAME% macro using legacy scripting returns an IP, is there anything I'm doing wrong here?

var ip = mobicontrol.network.IpAddress.hostName;
mobicontrol.log.info(""+ip);
The log was just to test what value gets returned from the variable above.
2 years ago
Android Scripting
ANSWERS