Skip to content

Commit b0e81dd

Browse files
committed
feat: change DPF_DEFAULT_PORT
1 parent 79ef97c commit b0e81dd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/ansys/dpf/core/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ class BaseService:
345345
--------
346346
Connect to an existing DPF server
347347
>>> from ansys.dpf import core as dpf
348-
>>> #server = dpf.connect_to_server(ip='127.0.0.1', port = 50054, as_global=False)
348+
>>> #server = dpf.connect_to_server(ip='127.0.0.1', port = 60054, as_global=False)
349349
>>> #base = dpf.BaseService(server=server)
350350
351351
"""

src/ansys/dpf/core/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def start_local_server(
182182
default is ``"LOCALHOST"``.
183183
port : int, optional
184184
Port to connect to the remote instance on. The default is
185-
``"DPF_DEFAULT_PORT"``, which is 50054.
185+
``"DPF_DEFAULT_PORT"``, which is 60054.
186186
ansys_path : str or os.PathLike, optional
187187
Root path for the Ansys installation directory. For example, ``"/ansys_inc/v212/"``.
188188
The default is the latest Ansys installation.
@@ -326,7 +326,7 @@ def connect_to_server(
326326
default is ``"LOCALHOST"``.
327327
port : int
328328
Port to connect to the remote instance on. The default is
329-
``"DPF_DEFAULT_PORT"``, which is 50054.
329+
``"DPF_DEFAULT_PORT"``, which is 60054.
330330
as_global : bool, optional
331331
Global variable that stores the IP address and port for the DPF
332332
module. All DPF objects created in this Python session will

src/ansys/dpf/core/server_types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
LOG = logging.getLogger(__name__)
6262
LOG.setLevel("DEBUG")
63-
DPF_DEFAULT_PORT = int(os.environ.get("DPF_PORT", 50054))
63+
DPF_DEFAULT_PORT = int(os.environ.get("DPF_PORT", 60054))
6464
LOCALHOST = os.environ.get("DPF_IP", "127.0.0.1")
6565
RUNNING_DOCKER = server_factory.create_default_docker_config()
6666

@@ -236,7 +236,7 @@ def launch_dpf(
236236
default is ``"LOCALHOST"``.
237237
port : int
238238
Port to connect to the remote instance on. The default is
239-
``"DPF_DEFAULT_PORT"``, which is 50054.
239+
``"DPF_DEFAULT_PORT"``, which is 60054.
240240
timeout : float, optional
241241
Maximum number of seconds for the initialization attempt.
242242
The default is ``10``. Once the specified number of seconds
@@ -274,7 +274,7 @@ def launch_dpf_on_docker(
274274
default is ``"LOCALHOST"``.
275275
port : int
276276
Port to connect to the remote instance on. The default is
277-
``"DPF_DEFAULT_PORT"``, which is 50054.
277+
``"DPF_DEFAULT_PORT"``, which is 60054.
278278
timeout : float, optional
279279
Maximum number of seconds for the initialization attempt.
280280
The default is ``50``. Once the specified number of seconds
@@ -1195,7 +1195,7 @@ class LegacyGrpcServer(BaseServer):
11951195
default is ``"LOCALHOST"``.
11961196
port : int
11971197
Port to connect to the remote instance on. The default is
1198-
``"DPF_DEFAULT_PORT"``, which is 50054.
1198+
``"DPF_DEFAULT_PORT"``, which is 60054.
11991199
timeout : float, optional
12001200
Maximum number of seconds for the initialization attempt.
12011201
The default is ``10``. Once the specified number of seconds

0 commit comments

Comments
 (0)