I use the getRemoteAddr method of HttpServletRequest to keep track of a user's location. After getting my Spring framework application up load to my remote deployment site, I notice that the only value it returning is the localhost one. First, I thought that I might not use it right: I should not use it inside of the formBackingObject method of a FormController. I, however, find the same situation in a handler method of a MultiactionController. How weird it is.
I had use the method before with another framework. It works nice.
Anywhere in the Spring framework configuration a remote IP address is masked to the localhost?
Thanks for your inputs.