title: IBM Worklight 6 - How would i get client IP address on adapter side
body: <p>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.</p>
  
  <p>I used this api on client side code which is given below  </p>
  
  <pre><code>WL.Device.getNetworkInfo(function (networkInfo) {
          console.log ("Ip address of device "+networkInfo.ipAddress);
         });
  </code></pre>
  
  <p>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.</p>
  
  <p>And I also used this code which is given below</p>
  
  <pre><code>var request = WL.Server.getClientRequest();
      var userAgent = request.getHeader("User-Agent");
  </code></pre>
  
  <p>Can we get Ip address here using this API in adapter procedure. </p>