How To: Use NETSTAT to identify available ports for ArcGIS Enterprise installation


ArcGIS Server requires specific port ranges to operate. In some instances, one or more of the required ports may be in conflict or in use on a different software. This results in a variety of errors, for example, inaccessible endpoints and loss of critical components. To counter this issue, NETSTAT, a built-in Windows utility can be used as it has the ability to identify port conflicts.

The following links provide the list of ports that ArcGIS Enterprise software uses:


The following steps describe how to identify the available ports before installing ArcGIS Server using the NETSTAT utility.

Checking for port conflicts does not eliminate the possibility that a firewall, antivirus or other security program is not blocking the port.
  1. Open the Windows Command Prompt.
  2. Run the following command.
netstat -ao | findstr "LISTENING" | findstr "4000 4001 4002 4003 6080 6443"
The ports from the sample above are used by ArcGIS GIS Server.
Check the printed list. If the searched ports are not listed, the ports are available and nothing is listening to the port. However, if any of the ports is unavailable, it is listed as shown in the following image. The column on the far right shows the Process ID (PID) of the process currently using the port.
The image of a sample of listened ports.

The following steps can be used to identify the process that is using the designated port:
  1. Open Windows Task Manager.
    1. Right-click Windows Taskbar.
    2. Select Task Manager.
  2. Click the Details tab.
  The image of the Details tab on the Windows Task Manager

If the PID matches the javaw.exe process with the username arcgis, this means the port is currently connected to ArcGIS Server. Otherwise, the process currently connected to the port is identified. The following images are examples showing ports and PIDs connected to ArcGIS Server.

The image of Windows Command Prompt with listened ports
The image of the Windows Task Manager

Related Information