Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Connector Administration

Identify port numbers

  • Last UpdatedFeb 21, 2025
  • 2 minute read

You must specify port numbers for PI Data Collection Manager administration web service and PI Connector Relay administration web service or OMF application data ingress.

PI Data Collection Manager (DCM) and PI Connector Relay (relay) use TCP ports to host their administration web services. When you access the administration web services from a remote host, all firewalls between the remote host and DCM and relay hosts must permit a browser on the remote host to open a connection to the web service. For example, if Windows firewall is enabled on the DCM host, Windows firewall must allow access to the configured web service port from approved remote hosts.

Note: The DCM opens a connection to a relay's administration web service to register the relay with the DCM. If there is a firewall between DCM and relay, the firewall must permit connection to the relay's administration web service port. After the relay is successfully registered, the DCM does not connect again to the relay's web administration port.

During installation, the wizard prompts you to check the availability of and then add a port number. However, you can identify port numbers before you start.

Note: Do not use ports 5671 and 5672. PI Connector Relay and PI Data Collection Manager use these ports for incoming connections from connectors.

  1. Open a command window and enter:

    netstat -a -n -p TCP | find "LISTENING"

    This command filters for active ports in "LISTENING" state and does not show active ports in other states. Since each server application (which can be implemented as a Windows service) accepts incoming client connections on a specific listening port, the output of this command shows the TCP ports that are assigned to the server applications that are currently running on the computer.

    Port numbers in command prompt

  2. View the last set of numbers in the second column to determine ports that are assigned to running server applications.

    Note: If this computer is the host for other server applications that are not running, their assigned ports are not listed.

    For example, the preceding figure shows that ports 80, 135, 445, and so on are assigned to server applications. The default port, 5460, is available, but be aware that port 5460 and other well-known ports can be the targets of cyber attacks. For better security, choose a non-default port.

TitleResults for “How to create a CRG?”Also Available in