Re: getRemoteAddr() vs getRemoteHost()

2001-10-27 Thread Yoav Shapira
Hi, My guess is you need to enable remote address lookups in your server.xml. Since they are expensive to log, they are usually turned off by default, and the behavior is to simply return the address rather than the host. Yoav Miao, Franco CAWS:EX wrote: When I put the following code in

RE: getRemoteAddr() vs getRemoteHost()

2001-10-27 Thread Miao, Franco CAWS:EX
: getRemoteAddr() vs getRemoteHost() Hi, My guess is you need to enable remote address lookups in your server.xml. Since they are expensive to log, they are usually turned off by default, and the behavior is to simply return the address rather than the host. Yoav Miao, Franco CAWS:EX wrote: When I put

getRemoteAddr() vs getRemoteHost()

2001-10-25 Thread Miao, Franco CAWS:EX
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(