attach_session#

ansys.edb.core.session.attach_session(ip_address=None, port_num=50051, dump_traffic_log=False)#

Attach a session to a port running the EDB API server.

Parameters:
ip_addressstr or None, default: None

IP address of the machine that is running the server. The default is None, in which case localhost is used.

port_numint, default: 50051

Port number that the server is listening on.

dump_traffic_logbool, default: False

Flag indicating if the network traffic log should be dumped when the session is disconnected.