>> i call a servlet at http://www.asdfg.com/servlet/helloWorld....
>>
>> this servlet need to know the ip of the server (http://www.asdfg.com)
> This is from documentation:
>
> public java.lang.String getRemoteAddr()
> Returns the Internet Protocol (IP)
> address of the client that sent the request. For HTTP servlets, same as
the
> value of the CGI variable REMOTE_ADDR.
> Returns:
> a String containing the IP address of the client that sent the request
>
> RTFM :-)

but read it correctly: he wanted the ip of the server, you told him how to
get the address of the client...

-mw

>
> Denis
>
>

___________________________________________________________________________
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