According to the javadoc for HttpServletRequest getRemoteHost() gives you:

Returns the fully qualified name of the client that sent the request.

By the sounds of it this is not what you were looking for? Hence it worked
on local host, but not a remote machine....

I think the method you are looking for is getServerName() ?

Mike.

On 10/22/07, John Kwon <[EMAIL PROTECTED]> wrote:
>
> Problem solved.  I'm just returning the URL to the PDF file, no
> controller.  Put in a bypass for ROLE_ANONYMOUS for /**/*.pdf
>
> That, and I have the Tomcat host address in a properties file now.  Never
> trust getRemoteHost()...  it doesn't always return a true address for the
> Tomcat host.
>

Reply via email to