Plet,

Basically you have to go in to the HTTP headers and extract it from
there. Here is the code we use...

<!--- Make sure that we know the users real ip address --->
<cftry>
<cfif StructKeyExists(GetHttpRequestData().headers, "X-Forwarded-For")>
        <cfset request.remote_addr = 
GetHttpRequestData().headers["X-Forwarded-For"]>
<cfelse>
        <cfset request.remote_addr = CGI.REMOTE_ADDR>
</cfif>
<cfcatch type="any"></cfcatch>
</cftry>


Thought we use Pound for our Load Balancer 90% of them use
X-Forwarded-For so I am sure this will work for you on the F5 LB.


J.J.


On 3/1/08, Piet Bruins <[EMAIL PROTECTED]> wrote:
> We are using F5 BIG-IP hardware for loadbalancing with IIS X-Forward-For 
> ISAPI Filter to get the Client IP address in the IIS loggings. This works 
> fine.
>
>  But at the moment we can't get to the client IP in the ColdFusion code (at 
> least not through any available CGI variables).
>
>  Please advice.
>
>  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300275
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to