public static function detect()
    {
        foreach (static::$remotes as $remote) {
            if ($address = getenv($remote)) {
                foreach (explode(',', $address) as $ipAddress) {
                    if (IpValidator::validate($ipAddress)) return $ipAddress;
                }
            }
        }

        return static::$default;
    }