networking#

Provides a module to get networking functionality.

Functions:

find_remoting_ip()

Find an ip address at which a gRPC connection can be established by looping over getaddrinfo output.

get_free_port()

Identifies a free port to which a new socket connection can be established.

ansys.fluent.core.utils.networking.find_remoting_ip()#

Find an ip address at which a gRPC connection can be established by looping over getaddrinfo output.

Returns:
str

remoting ip address

ansys.fluent.core.utils.networking.get_free_port()#

Identifies a free port to which a new socket connection can be established.

Returns:
int

port number