"This may be due to network connectivity issues. Please check your network settings, and the status of the service you are trying to reach."
generally don't run Jenkins or its agents as a built-in service type as it exposes your infrastructure too much (like running as root on Linux). try setting up a separate service account for Jenkins and configure the service to use that account.