<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi,
>
> Is there code for retrieving server address (IP address?) too?
>

request.getLocalAddr();

Note that this may not match the result of request.getServerName(); if 
natting or proxies are involved.

> Thanks.
>
> request.getServerName()
>
>
>> -----Original Message-----
>>  From: Amir Sadeh [mailto:[EMAIL PROTECTED]
>> Sent: Sunday, February  19, 2006 10:57 AM
>> To: users@tomcat.apache.org
>> Subject:  Retrieving host name
>>
>> Hi,
>> How can I retrieve the host  name (defined in the tomcat
>> server.xml) or some unique host id in a  JSP/Servlet code?
>>
>>
>> Regards,
>> Amir  S
>
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to