def setup_address(): ip = ray.util.get_node_ip_address() port = find_free_port() return f"tcp://{ip}:{port}"
def get_address_and_port() -> Tuple[str, int]: """Returns the IP address and a free port on this node.""" addr = ray.util.get_node_ip_address() port = find_free_port() return addr, port
def find_free_port(self): """Finds a free port on the current node.""" return find_free_port()