If using an on-premises version of ServiceNow, set the request.setEndpoint to , where the hostname is the host where the ServiceNow connector (remote plugin) is running, and the port is the value specified for the config.port parameter in the plugin.properties file.