Attempt to log the correct client IP.