Determine If the TCP Port for the BarTender Licensing Service is Open
Overview
In this article you will learn how to verify connectivity to remote services that are based on TCP (such as the BarTender Licensing Service) and check if a specific port is open.
Applicable to
BarTender 2019 and later
Information
Starting from BarTender 2019, the system hosting the BarTender license uses TCP port 5160 by default. So, the BarTender clients are retrieving license information from the host system through this port. However, in some cases you may find that your computer's firewall is blocking such communication, preventing the connectivity with a remote BarTender Licensing Service during activation as a BarTender client.
If you've already tried to manually search your license over the network through the BarTender Licensing Wizard but your license is still not shown in the list, try one of the following command-line utilities to check if the default TCP 5160 port is indeed blocked:
-
In order to verify if that port is active and listening on the server itself, use
netstat -na | find "5160"
-
In order to make sure you are able to connect to the port from client side, check whether TcpTestSucceeded is True or False, when executing the command
PowerShell Test-NetConnection -p Port Host
- For example, we could type
PowerShell Test-NetConnection -p 5160 192.168.1.100
- For example, we could type
In general:
- TcpTestSucceeded: False means that nothing is running on that port, the host is unreachable, or a firewall is blocking access
- TcpTestSucceeded: True means that the connection was successful