You'd probably need to change a few scripts depending on version. If you look for any files in the scripts and libs directories where it gets REMOTE_ADDR then you could change that to the environment variable that you actually need.