My Oracle Support Banner

How to Propagate the X-Forwarded-For Header to WLS Managed Server to Get the Client IP Address for Logging (Doc ID 1310268.1)

Last updated on AUGUST 15, 2023

Applies to:

Oracle WebLogic Server - Version 8.1 and later
Information in this document applies to any platform.
*** ***


After upgrading from Oracle Application Server OC4J 10g based environments to WebLogic Server, some applications might not log the client IP address because the legacy application server was using X-Forwarded-For (XFF) to achieve the same.

Applications will be unable to get client IP addresses on WebLogic Server when the requests are routed through load balancer (BigIP) and Oracle HTTP Server (OHS).

When using Client BigIP load balancer OHS WLS, the X-Forwarded-For header was listing the load balancer IP as opposed to Client IP.

How can the client IP be propagated within the X-Forwarded-For header?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.