diff --git a/ansys/dpf/core/server_factory.py b/ansys/dpf/core/server_factory.py index ebc9295431..4646acd8f3 100644 --- a/ansys/dpf/core/server_factory.py +++ b/ansys/dpf/core/server_factory.py @@ -577,7 +577,10 @@ def get_server_type_from_config(config: ServerConfig = None, # dpf.core.SERVER_CONFIGURATION is required to know what type of connection to set if config is None: # If no SERVER_CONFIGURATION is yet defined, set one with default values - is_server_old = _find_outdated_ansys_version(ansys_path) + is_server_old = False + if ansys_path is not None: + if not "ansys_dpf_server" in ansys_path: + is_server_old = _find_outdated_ansys_version(ansys_path) config = get_default_server_config(is_server_old, docker_config) if config.protocol == CommunicationProtocols.gRPC and config.legacy: return LegacyGrpcServer