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!

jsp:to know the address-ip of the server

843836Jun 7 2004 — edited Jun 7 2004
with

<%

out.println(request.getRemoteHost());

%>

i get:
127.0.0.1

with
<%

out.println(request.getServerName());

%>

i get:
localhost

how can i know the address-ip of the server??(that in this case is my pc)

(sorry for my bad english)

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 5 2004
Added on Jun 7 2004
2 comments
149 views