I need the IP Address/Machine Name/Mac Address of the Client in my web application for a particular usecase. Using request.getRemoteHost()/request.getRemoteAddr()
I get the details of the Firewall for the Network instead of the actual client machine. I also tried accessing the request header - X-Forwarded-For
, as suggested in many answers. But it is always returned as Empty. I do not have control over the Proxy Server/Firewall Server to configure it to add the header, as they are Customer controlled.
Is there any other API in Java or javascript to retrieve the original Client IP for the request.
Any help is greatly appreciated...