Detect client IP address if one is not set