tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Oxley <d...@staffplanner.co.uk>
Subject Host name
Date Wed, 27 Sep 2000 16:34:15 GMT
I need to retrieve the host name of the server on which I am currently
running. I used:
InetAddress.getLocalHost().getHostName();
...but this returns the wrong host if it is a virtual host that took the
HttpRequest.
How can I get the name of the virtual host.
Thanks.
Dave
Dave@Staffplanner.co.uk

Mime
View raw message