Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting IP address with JSP

843836Apr 6 2004 — edited Apr 7 2004
Hi,

i'm sure this was discussed a lot of times but I can't get it done.

I'm trying to get the IP address of the client requesting a JSP from a server.

What I have so far is <%= request.getRemoteAddr() %> :/

This seems to display only the remote IP of the last host that sent the request. How can I get the IP of the client that originally requested the JSP? Is this possible at all?

Thanks a lot,
Thomas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2004
Added on Apr 6 2004
14 comments
1,362 views