Solved

Flex and Struts ip tracking problem

Posted on 2010-11-18
2
499 Views
Last Modified: 2012-05-10
Hi,
      My flex application is running on  http://www.mydomain.com. When we hit this URL the proxy will internally redirect to my flex application and will open myPage.html. I am using http service calls in my flex app. I will be calling java application with URL's http://subdomain.mydomain.com/xxx.action where the proxy internally redirects the http://subdomain.mydomain.com to our java application which is developed in struts 2.0.

Now my problem is when i try to track the ip address of the user with code servletRequest.getRemoteAddr() the ip addres i am getting is 127.0.0.1 instead of user ip addres. But i need the user ip address. Can any one help me out how to solve this
0
Comment
Question by:srujanmiryala
2 Comments
 
LVL 19

Accepted Solution

by:
Gabriel Orozco earned 500 total points
ID: 34184029
a proxy responds itself to the user request, while in its place, starts a new request to the proxied applications.

What I mean? If your proxy is working correctly, you always will se the requests coming from it.
You can still get the original client ip address in a header if you modify your proxy to send it, and the receiving application to read the original ip address from the header if present:

http://en.wikipedia.org/wiki/X-Forwarded-For
0
 

Author Closing Comment

by:srujanmiryala
ID: 34318303
Hello Redimido,

Thank you for the help provided. It is working fine now.

Thank you very much
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
changePi Challenge 15 125
topping1 challenge 7 90
Issue to mail 11 94
spring jars download 1 26
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question