Forum Discussion

Cpet's avatar
Cpet
Icon for Altocumulus rankAltocumulus
Nov 09, 2018

How can i replace the "REMOTE_ADDRESS" IP with the "x-forworded-for" IP address

Hi all,

 

Could you help me how can i replace the "REMOTE_ADDRESS" IP with the "x-forworded-for" IP address?Behind from remote ip address which is the VS load balanced IP address there 2 web servers, and i want to know the client (customer) ip address connected on them.

 

Thank you

 

 

  • It seems to be log from backend server!

     

    To preserve client IP address on server connection, you must disable source address translation in virtual server!

     

    But if you disable source address translation, you may have routing issues!

     

    This is why when we configure source address translation, we can add x-forwarded-for header to send to the server the client IP address