Results 1 to 3 of 3

Thread: How weird: the request.getRemoteAddr returing 127.0.0.1?

  1. #1

    Default How weird: the request.getRemoteAddr returing 127.0.0.1?

    I use the getRemoteAddr method of HttpServletRequest to keep track of a user's location. After getting my Spring framework application up load to my remote deployment site, I notice that the only value it returning is the localhost one. First, I thought that I might not use it right: I should not use it inside of the formBackingObject method of a FormController. I, however, find the same situation in a handler method of a MultiactionController. How weird it is.

    I had use the method before with another framework. It works nice.

    Anywhere in the Spring framework configuration a remote IP address is masked to the localhost?

    Thanks for your inputs.


    v.

  2. #2
    Join Date
    Oct 2004
    Location
    Herndon, VA, US
    Posts
    648

    Default

    I can't think of any part of Spring that would touch the remote IP address. Are you running any web server connector in front of your tomcat?
    --Jing Xue

  3. #3

    Default

    Quote Originally Posted by manifoldronin
    I can't think of any part of Spring that would touch the remote IP address. Are you running any web server connector in front of your tomcat?
    I get back from the site host. Apache server is in front of the TC 5.5. I don't whether it is a way to go around this setting.

    Thanks Mr. Jing. I replied your post yesterday. For some reason, it doesn't show up.

Similar Threads

  1. weird BeanCreationException
    By getagrip in forum Container
    Replies: 4
    Last Post: May 31st, 2005, 09:33 AM
  2. Replies: 4
    Last Post: May 29th, 2005, 07:39 AM
  3. Replies: 2
    Last Post: Jan 1st, 2005, 12:44 PM
  4. Replies: 8
    Last Post: Dec 7th, 2004, 06:13 PM
  5. Replies: 2
    Last Post: Nov 9th, 2004, 12:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •