How to get Anonymous IPAddress

1
We have a special page to which customers can go using a URL containing a unique token. The customer doesn't have to sign in but sees a page with some personal info. To prevent users from randomly trying tokens over and over we want to block requests using non-existent tokens from an IP address after 5 failed tries. How can we get the IP address from where the deeplink is requested, without the user logging in?
asked
3 answers
3

This answer may help you: https://forum.mendix.com/questions/5846/How-to-get-the-IP-address-from-the-client-in-Java

answered
2

I got it working using request.getHeader("X-Forwarded-For") in StartDeepLinkJava.

answered
1

Within StartDeepLinkJava use

request.getRemoteAddr()
answered