tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kukulies <>
Subject getRemoteHost() returns ""
Date Thu, 16 Nov 2000 09:43:45 GMT
I thought I could get the remote hostname in a Servlet
or jsp file. The following returns nothing for getRemoteHost():

HostIP="<%= request.getRemoteAddr() %>"
<INPUT TYPE='text'
           VALUE="<%= request.getRemoteHost() %>"

I was suspecting it is a name resolution (DNS) problem but my
nameresolution sequence is hosts, then bind. And the host 
for example (it's an intranet) can be found.

Any clues?
Chris Christoph P. U. Kukulies

View raw message