> make sure that DNS is available to
        > your server,...

Craig:

    Thanks for the helpful information.

    getRemoteHost() returns a null value. Not sure what to do to make DNS
available to this server; but, I'll look into it. This may solve much of the
problem.

        > ... and that the remote hosts you are
        > looking up actually have a name -- otherwise,
        > you will get a copy of the IP address.

    I intended my question to look for alternatives to getRemoteHost(). We
have a JSP which tracks IP hits.

    In many cases, the IP is dynamically assigned from a pool. It appears
these IPs do not have DNS host names. Is there a way to get domain names to
which IP pools are assigned?

Phil

-----Original Message-----
From: Craig R. McClanahan <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Saturday, November 06, 1999 8:01 PM
Subject: Re: request.getRemoteAddr()


>Campbell wrote:
>
>>  Does anyone know how to trace networks hosts IP addresses obtained
>> through     String reqip = request.getRemoteAddr(); We want to
>> identify the host server, such as sl.jps.net for 209.63.114.xxx. Any
>> thoughts? Phil
>
>As the API documentation will tell you, use getRemoteHost() instead of
>getRemoteAddr().  You will need to make sure that DNS is available to
>your server, and that the remote hosts you are looking up actually have
>a name -- otherwise, you will get a copy of the IP address.
>
>Craig McClanahan
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to