Hi, try getHostAddress() getHostName()of InetAddress.
hope this will work.
On Mon, 19 June 2000, Rajah Nagaraj Raghuraman wrote:

>
> Hello All,
>
>             I have a problem getting the IP Address or the Host Name of the
> client accessing my servlet. I tried req.getRemoteHost() and
> req.getRemoteAddr() methods but the servlet returns an
> IllegalAccessException...Please enlighten...
>
> Thanks,
> Rajah.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Shyam Bihari Singhal
101/1 ODC
TCS SEEPZ
Tel. 8291680 Ext 234,139
______________________________________________________
123India.com - India's Premier Portal
Get your Free Email Account at http://www.123india.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to