Use REMOTE_ADDR which is more reliably set.