Skip to content

Commit

Permalink
use 0.0.0.0 as hostname for rpyc servers (#4294)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansAFinney authored Feb 28, 2024
1 parent 61f4d81 commit 22380a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyaedt/common_rpc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import signal
import socket
import sys
import tempfile
import time
Expand Down Expand Up @@ -165,7 +164,7 @@ def pyaedt_service_manager(port=17878, aedt_version=None, student_version=False)
os.environ["PYAEDT_SERVER_AEDT_NG"] = "True"
os.environ["ANS_NODEPCHECK"] = str(1)

hostname = socket.gethostname()
hostname = "0.0.0.0"
t = ThreadedServer(
ServiceManager,
hostname=hostname,
Expand Down Expand Up @@ -226,7 +225,7 @@ def launch_server(port=18000, ansysem_path=None, non_graphical=False, threaded=T
os.environ["ANS_NO_MONO_CLEANUP"] = str(1)
os.environ["ANS_NODEPCHECK"] = str(1)

hostname = socket.gethostname()
hostname = "0.0.0.0"
if threaded:
service = ThreadedServer
else:
Expand Down

0 comments on commit 22380a4

Please sign in to comment.