Portal for ArcGIS: Hosted/<Feature_Service>/FeatureServer: The connection attempt failed

Last Published: June 27, 2024

Error Message

In ArcGIS Enterprise, when attempting to load a hosted feature layer in Portal for ArcGIS Map Viewer or ArcGIS Dashboards, the error message below is intermittently returned.

Hosted/<Feature_Service>/FeatureServer: The connection attempt failed.

In some cases, the error message described below is present in the hosting ArcGIS Server logs in addition to the previous error message.

Hosted/<Feature_Service>/FeatureServer: Connection to <Machine_Name>:9876 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.


The antivirus program installed on the machine interrupts the communication between ArcGIS Server and the relational data store.

Solution or Workaround

Consult the organization's IT personnel before proceeding with the workarounds.

Configure antivirus exceptions

Configure the antivirus software to exclude certain processes or directories related to ArcGIS. Refer to Microsoft: Add an exclusion to Windows Security for instructions. Download the PDF file, PDF: Considerations for configuring antivirus software for ArcGIS Enterprise hosts, for additional information. Exempt the following directories:

  • ArcGIS Server directories:
  • ArcGIS DataStore directories:
  • Portal for ArcGIS directories:
After completing the necessary tasks, reinstate the exempted directories.

Disable or remove the antivirus program

Proceed with the following workaround with caution, as disabling or removing the antivirus program potentially exposes the machine to security risks.

Disable or remove the antivirus program on the ArcGIS Enterprise machines. Refer to Microsoft: Turn off Defender antivirus protection in Windows Security for instructions.

If the antivirus is a third-party program, temporarily disable it.

After completing the necessary tasks, reactivate the antivirus program, as it safeguards the machine from potential security threats. To reactivate Microsoft Defender, refer to Microsoft: Turn on Microsoft Defender Antivirus for instructions. If a third-party antivirus was disabled, reenable it.

Article ID:000032646

  • Portal for ArcGIS
  • ArcGIS Enterprise 11 2
  • ArcGIS Dashboards
  • ArcGIS Enterprise 11 3
  • ArcGIS Enterprise 11 1

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options