I want to have client ip address on adapter side but i don't know what is the worklight api for that. I search for it but no luck.
I used this api on client side code which is given below
WL.Device.getNetworkInfo(function (networkInfo) {
console.log ("Ip address of device "+networkInfo.ipAddress);
});
It works fine and i can pass this to the adapter from client side. But i just wanted to know whether the same thing can be implemented on server side in adapter procedure.
And I also used this code which is given below
var request = WL.Server.getClientRequest();
var userAgent = request.getHeader("User-Agent");
Can we get Ip address here using this API in adapter procedure.