Knowledge Base > Automation Engine and Target Systems > BS2000 > Agent - Freely Defined Port Numbers

Agent - Freely Defined Port Numbers

Free port number are usually supplied in the DCSOF with the parameter "Freeport". By default, the first free  port number is 4096.

The BS2000 agent does not work with a fixed port number which is written in to its INI file. The agent requests a free port number when it establishes a connection to the Automation Engine.

If the BS2000 agent is automatically loaded after a successful test start of the host, please make sure that its required free port number is not in conflict with other settings.

Example:

The test results in the following constellation:

1. An application which uses the port number 4096 via /BCMAP command is already running.
2. The BS2000 agent is started manually and obtains the next free port number (e.g.: 4097).
3.Result: Both, the application and the agent work correctly.

After the tests, the BS2000 agent starts automatically and is loaded before the application.

1. The BS2000 agent obtains the first free port number 4096.
2. The application to which this port number has been assigned on a fixed basis via a /BCMAP command cannot start.