i do not think the prob is your machine. I did the same code to one of my
machines and got this
172.32.29.21
system02
when i do a nslookup i get a different name.
I believe this is because request.getRemoteHost() talks to the actual
machine and asks it name. Check the machine your are using
request.getRemoteHost() with, to see if it thinks it has a host name. I bet
it has a different one than it dns name.
Daniel Jaffa
Computer GOD who Created the Stars and Moon
"If you are not happy, I am not happy"
----Original Message Follows----
it show up the host name with nslookup, but not getRemoteHost()
Franco
-----Original Message-----
What happens when you nslookup the address you're getting from
getRemoteAddr()?
(*Chris*)
----- Original Message -----
From: "Miao, Franco CAWS:EX" <[EMAIL PROTECTED]>
>
>
> That means the reverse lookup on the address is failing so getRemoteHost
is
> returning the only piece of information it has, the address.
> (*Chris*)
>
> ----- Original Message -----
> From: "Miao, Franco CAWS:EX" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 25, 2001 11:05 AM
> Subject: [JSP-INTEREST] getRemoteAddr() vs getRemoteHost()
>
>
> > When I put the following code in my Jsp, it comes up two identical
remote
> IP
> > addresses, instead of one remote IP and one remote host name. My
computer
> > has Internet IP and valid Internet DNS server. Any suggestion about
that?
> > Thanks!
> >
> > out.print( request.getRemoteAddr() );
> > out.print( request.getRemoteHost() );
> >
> > Franco
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com