Quantcast
Viewing all articles
Browse latest Browse all 3285

Fetch IP address of resquest

Hi ,

 

How can I fetch IP address from the request in xsjs service?

 

I tried with this code :

 

var ipAddress = $.request.headers.get("X-FORWARDED-FOR");

 

It is working but who ever request for service gives the same IP address.

 

Please suggest, how we can achieve this.

 

Thanks & Regards,

Desanth


Viewing all articles
Browse latest Browse all 3285

Trending Articles