Summary: When Public API is enabled you may get the following errors when attempting to connect to Cayosoft Administrator Service:
Connect-CGraphAdminService : Unable to connect to the remote server
Connect-CGraphAdminService : No connection could be made because the target machine actively refused it 192.168.130.100:7801
Connect-CGraphAdminService : An error occurred while sending the request. Connect-CGraphAdminService : The underlying connection was closed: an unexpected error occurred on a send.
This article contains instructions on how to resolve these errors.
Applies to: Cayosoft Administrator 7.3.0 or later
To resolve the connection issues perform the following steps:
- In Admin Console navigate to Home > Configuration > Settings > Public API and ensure that Public API is enabled on this Administration Service is checked.
- If you connect from the machine where Administration Service is not installed check that this machine belongs to the same domain where Administration Service is installed.
- Check that CGraph module is installed:
- Run this PowerShell command: get-installedmodule
- CGraph Module and its version should be displayed in the list.
- CGraph connection requires these ports to be accessible: 7801, 7802, 7803. Please check that Firewall doesn't block this connection. You may need to create an Inbound rule for these ports.
- Check that there is a proper certificate that Public API can use. By default, Public API utilizes any certificate from "cert:\localmachine\my" which subject matches host FQDN. When you enable Public API, Cayosoft Administrator enumerates available certificates and if there is no suitable certificate creates a self-signed certificate and uses it.