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...
Even if you get real IP address (for example run signed Applet or trick ActiveObject) you cannot use it - it is behind firewall and you cannot access it.
Probably your need to uniquely identify computer/browser? There are some other approaches to do so. Cookies for start.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With