Warning 2401: Cannot connect to the license server
While attempting to print a label in BarTender, warning message #2401 appears and does not print the label.
BarTender 2019 and above
There are 3 common reasons that the connection to the License Server cannot be established or is lost.
1. License is not shared/broadcast over the network
There are some instances where during activation, the option to "Share License over Network" check box is either unchecked or the user does not have permission to administer the license to apply that setting.
- This setting can be changed within the Administration Console > Licensing Setup
- Expand the Server name > Current license > License Partitions > User Access Control
- Change settings to "Allow Everyone From Everywhere"
2. Licensing Service is not running on this PC
With the Automatic Startup type for the BarTender Licensing Service, there are instances where the service will not start up correctly/timeout after a reboot. Changing the Startup Type to Automatic (Delayed Start) in Windows Services helps to prevent this in the future.
- Open Services in Windows
- Right click on the BarTender Licensing Service and go to Properties
- Change the Startup Type to Automatic (Delayed Start). Hit OK
- If the service is not started, you can start it after this change.
3. Firewall is blocking the connection
Firewall/network settings were applied or changed that are now preventing the communication being established between the client computer and license server. There are a few ways to check if this is the reason. Note that by default, the license server communicates through TCP port 5160.
- Temporarily disable Windows firewall to see if this is causing the issue. This is found in the Control Panel under Windows Defender Firewall > Turn Windows Defender Firewall On or Off. You will need to turn off all 3 options (Domain, Private, Public)
- In instances where you have your own firewall system in place that isn't controlled by Windows(e.g., third party anti-virus software, hardware firewall, etc), please contact your IT Dept/System Administrator for further assistance.
- Use Telnet to see if a connection can be established between the client computer and license server via TCP port 5160.
Internal Only Information
**UNDER NO CIRCUMSTANCES DO YOU MAKE ANY CHANGES TO THEIR FIREWALL SETTINGS. IF THE ISSUE IS THE FIREWALL, CHANGES ARE TO BE MADE BY THE CUSTOMER'S OWN IT DEPT**