tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kukulies <k...@gilberto.physik.rwth-aachen.de>
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():

<FORM>
HostIP="<%= request.getRemoteAddr() %>"
<INPUT TYPE='text'
           NAME='hn'
           VALUE="<%= request.getRemoteHost() %>"
           SIZE='15'>
</FORM>
</html>

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

Any clues?
-- 
Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de


Mime
View raw message