E
Eqbal Z
Hi,
How do I get a client browser's ip address that is accessing a JSP page?
How do I get a client browser's ip address that is accessing a JSP page?
as "request" object is automatically given by J2EE framework!request.getRemoteHost()
Luca said:I don't have the documentation at hand actually
but I remember there's a method of HttpServletRequest
like getRemoteHost().
So from your JSP page you can simply call
as "request" object is automatically given by J2EE framework!
Nitpick: that does _not_ give you the IP address of "client's
browser", since the client's browser has no IP address associated
with it.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.