Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my web application I need to extract the real ip address for clients behind proxy, after searching I found that the possible method to do that is to read the content of "X_FORWARDED_FOR" header , I am using java servlet and the headers of the incoming request doesn't contain "X_FORWARDED_FOR" header , So why the header doesn't included in the request?

I am using java 1.7 , tomcat v7 , proxy server :TMG and configured to use "X_FORWARDED_FOR" header .

Please advice.

Thanks in advance.

share|improve this question
Please show your tomcat configuration where XFF is set. – HTTP500 Dec 9 '12 at 15:26
up vote 2 down vote accepted

TMG doesn't support X-Forwarded-For out of the box; you need to add a third party web filter such as Winfrasoft X-Forwarded-For for TMG to gain this capability in your TMG reverse proxy.

share|improve this answer

The Winfrasoft one is 4,500 per server. Try a free, open source one:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.