CST - How to use the cst.interface.DesignEnvironment.connect(tcp_address: str) → object method in CST Python Libraries to enable Python automation code to remotely call CST on another computer?

As mentioned in the title, I found in the CST Studio Suite  Python Libraries documentation that the 

DesignEnvironment.connect 

method can connect to an existing Design Environment listening on a given TCP address. However, when I tried some code using an address like 192.168.50.191:38700, it resulted in the following error.

Upon investigating, I noticed that the line 

res = _DesignEnvironmentBase.connect(pid_or_address) 

points to the dynamic link library 

_cst_interface.cp39-win_amd64.pyd. 

At this point, I couldn’t figure out what kind of address is required to meet the connect method’s expectations. I’d like to ask if anyone knows how to properly connect to a CST instance on a remote computer.

 

 

Alternatively, how can I use Python to distribute tasks to different remote computers? Thank you!

The image couldn't be viewed, so I can only directly paste the error code.

Error tips:

Exception has occurred: RuntimeError
Unknown protocol: 192.168.50.191
 File "C:\Program Files (x86)\CST Studio Suite 2024\AMD64\python_cst_libraries\cst\interface\studio.py", line 44, in connect
   res = _DesignEnvironmentBase.connect(pid_or_address)
 File "D:\xyqkent\DL-FAS\Python\drawConnector\test_remote_cst.py", line 5, in 
   _cst=cst.interface.DesignEnvironment.connect("192.168.50.191:38700")
RuntimeError: Unknown protocol: 192.168.50.191

 

C:\Program Files (x86)\CST Studio Suite 2024\AMD64\python_cst_libraries\cst\interface\studio.py:

@staticmethod
   def connect(pid_or_address: Union[int, str]) -> "DesignEnvironment":
       res = _DesignEnvironmentBase.connect(pid_or_address)
       res.__class__ = DesignEnvironment
       return res