I am developing an application in local machine using tomcat 7 & servlet 3. In this I am trying to read the client address in Servlet to identify from where the request is coming using request.getRemoteAddr() which is always returning null.
I also tried as metioned here , but facing the same issue. Some where I read that using machine name instead of localhost will resolve the issue. I tried using machine name still the same issue.
Can anyone provide any help links or solution doc for the necessary configuration changes to retrieve the ip address ?