How to change LeanFT Runtime Engine default communications port?

  • KM02540006
  • 31-Aug-2016
  • 01-Sep-2016

Summary

This document shows how to change the communication port used by the Runtime Engine.

Question

By default LeanFT Runtime Engine uses port 5095. The default port can be changed in order to avoid possible port conflicts if required.

Answer

For this, we have two options:

Option 1:

  1. Click on the LeanFT Runtime Engine. A popup menu appears.
  2. Choose "Settings" from the menu
  3. The LeanFT Runtime Engine configuration file ("LFTRuntime.exe.config") will open up in the default ".config" files editor (usually Visual Studio).
  4. Look for a line in the file starting with something like:
    <connection port="5095"
  5. Change the number to a number representing a port that is free.
  6. Exit the LeanFT Runtime Engine and start it again.

Option 2: 

  1. Locate the file "LFTRuntime.exe.config" in the "bin" folder of the LeanFT installation. It is located usually at:
    Standalone LeanFT installation on 64bit OS: C:\Program Files (x86)\HP\LeanFT\bin\LFTRuntime.exe.config
    Standalone LeanFT installation on 32bit OS: C:\Program Files\HP\LeanFT\bin\LFTRuntime.exe.config
    UFT and LeanFT installation on 64bit OS: C:\Program Files (x86)\HP\UFT\bin\LFTRuntime.exe.config
    UFT and LeanFT installation on 32bit OS: C:\Program Files\HP\UFT\bin\LFTRuntime.exe.config
  2. Open the file in a text editor or double click it to open it in the default ".config" file extension type editor.
  3. Look for a line in the file starting with something like:
    <connection port="5095"
  4. Change the number to a number representing a port that is free.
  5. Exit the LeanFT Runtime Engine and start it again.