Rate this Article:
You must be signed in to rate again
Article Feedback Print View
Alternate Languages:

Changing the License Server's Port Number

Document ID: CTX103008   /   Created On: Dec 1, 2003   /   Updated On: Apr 11, 2008
Average Rating: 3

Background

A default license file with no port number specified contains the following on the Server line:

SERVER this_host ANY

— or —

SERVER this_host HOSTNAME=YOURLICENSESERVERNAME

With no port number specified after the hostname or any, the license server uses a default port between the range of 27000–27009.

To verify what port the license server is listening on, type netstat –a at a command line on the license server.

Symptoms

After changing the port in the license file and executing an lmreread –c or attempting to stop and start the CitrixLicensing service, the following error messages can appear:

Error during Lmreread
[Detecting lmgrd processes...]
lmreread failed: Cannot connect to license server (-15,10:10061 "WinSock: Connection refused")

Error when stopping and restarting the CitrixLicensing service:

Could not start the CitrixLicensing service on local Computer

Error 1067: the process terminated unexpectedly.

Cause

These errors can occur when the port number is changed in one .lic file in the MyFiles directory but not the other license files in the same directory. All license files in the MyFiles directory need to reflect the same port number.

Resolution

Change the license server port:

    1. Back up both license files.

    2. Remove the read only attribute on the properties of each license file.

    3. Using a text editor, preferably Notepad, modify the Server line by appending a port number after hostname or any. Save the file — make sure it keeps its .lic extension and not the text editor’s extension.

    For example: SERVER this_host HOSTNAME=FTLSTACYS 27895
    SERVER this_host ANY 27895

    4. Execute lmreread to reread the license file into memory without stopping and starting the CitrixLicensing service. If no users are utilizing the license server, stopping and restarting the CitrixLicensing service also reloads the license files.

    Note: lmreread syntax:

At a command line, browse to \Program Files\Citrix\Licensing\LS > lmreread –c “c:\licensefile.lic”

    5. At a command prompt, type netstat –a to verify the new port number.

    6. Modify all .lic files in the MyFiles directory with the same port number and run an lmreread against those files as well.

    7. Change the port number in the Management Console to reflect the new port. To change the port number, right click the farm name, go to Properties, then License Server. Enter the port number and click OK.


Search
Knowledge Center
XenApp
XenApp Plugins (Clients)
XenServer
XenDesktop
NetScaler Application Delivery
Access Gateway
EdgeSight
Provisioning Server
WANScaler
Password Manager
Does it work with Citrix? Verify it - introducing the new Citrix Ready Community Verified