if you analyze the AOLserver log of AOLserver 4.0 then you don't have to do anything extra as this version of the web server logs the X-Forwarded-for IP address in the log.
/Bart