Solved
Forum Discussion
MattV
3 years agoKhoros Staff
http.request.remoteAddr returns the IP address of whatever IP made the HTTP request, so you'd have to consider the context of how that code is being called.
Though I'd expect 99% of the time, it should be returning the IP address of the current user; e.g. if you're testing it, it would be your IP address.
- 3 years ago
Thanks for your inputs.
I was able to make it work by passing ip address in headers.
<#assign response = http.client.request("api").header("X-FORWARDED-FOR",ipaddress).get()/>