Configuring VectorCAST Licensing to Use Fixed Ports
I have an issue with VectorCast changing a license port dynamically, which isn't playing fair with the firewall rule, or could be conflicting with other FLEXlm products. How can we configure so that the lmgrd and vendor daemon ports are the same every time? We saw that the daemon was using port 4351, but it seems from the log that 4351 is not being used after a reboot.
By default, the FLEXlm lmgrd service grabs any port in the range of 27000 to 27009. You can force it to use one of those, such as 27001, or any other port by adding the desired port <number> as the fourth field on the SERVER line at the top of the license file, like so:
SERVER <server_name> <server_address> 27001
Also by default, FLEXlm grabs any available random port for the vector vendor daemon port of the communication. You can force it to use the same port, such as 4351, every time by adding PORT=<number> at the end of the DAEMON line of the VectorCAST license file, like so:
DAEMON vector C:\VCAST\flexlm\vector.exe PORT=4351
Please note that you cannot use the same port number value as both the port serving the license and the vendor daemon port. You should be sure that the chosen ports are open in both directions through any firewalls.
After specifying ports or changing them by editing the license file, you will need to restart the license service for the changes to take affect.