For people who have a proxied web server, here's a WordPress patch for WordPress version 2.2.2. It's a pretty minor change.

Download the patch

In the WordPress directory run:

patch -p1 < forwarded_ip.patch