I need the name IP address / computer name / Mac address of the client in my web application for a specific account. Using request.getRemoteHost()/request.getRemoteAddr() , I get the firewall information for the network instead of the actual client machine. I also tried to access the request header - X-Forwarded-For , as suggested in many answers. But he always comes back as Empty. I have no control over the Proxy Server / Firewall Server to configure it to add a header, as they are controlled by the Client.
Is there any other API in Java or javascript to retrieve the source IP address of the client for the request.
Any help is much appreciated ...
source share