Common Questions


Is there is a firewall, router, or security software setting blocking communication between client and server?

In order for a client application to communicate with a dongle server via TCP/IP, verify that no firewalls or security software on client or server or routers settings is blocking communications.

All firewalls, security software, and routers must be set up to allow klserver.exe to communicate via TCP/IP, and must allow communications via TCP/IP port 4242. In addition, if you are not using a TCPIPSVR.DAT file to point the client to a specific server, all firewalls, security software, and routers must be set up to allow UDP communications between client and server.

How can I point the client to a specific server?

Use a TCPIPSVR.DAT file on the client.

In order to have an application running on a client machine point to a specific server, place a file named TCPIPSVR.DAT in the \Windows\System32 directory. TCPIPSVR.DAT should be a standard ASCII text file (such as those created by Notepad) and should contain one line with either the full IP address or network name of the server. The placement of the file is architecture dependent. 64-bit OS require placement of this file in either \sysWOW64 or \system32 depending upon the architecture of the application.

You can also use the install utility to create a TCPIPSVR.DAT file. When you install the client software, click the Set Server button. The utility will then allow you to either enter a network name or IP address manually or select the desired dongle server from a list of dongle servers currently active on the network.

How can I change the idle session timeout?

Put a KLTCPIP.DAT file on the dongle server.

By default it is set to 540 minutes (9 hours) and the TCP/IP client will stay connected to the server (as long as the server is running without interruption) even if the session is idle. In order set a fixed timeout (in minutes) for idle dongle session clients, put a file called KLTCPIP.DAT in the same directory as klserver.exe on the dongle server. The file should be a standard ASCII text file (such as those created by Notepad) containing one line with the number of minutes that can pass with no activity from a client session before the session times out and is disconnected.

What is NetKeyMonitor.exe and how can I use it?

NetKeyMonitor is a company unique utility that scans the system for active TCP/IP dongle servers and reports the maximum number of simultaneous sessions reported and the number of session currently in use.

KEYLOK supplies a copy of NetKeyMonitor set up for our DEMO dongles on our DEMO SDK and a copy set up for your production dongles in your Company Unique SDK. In either case, the file is located in the \Networking directory. It will also be installed into the \Program Files\KEYLOK\Networking directory on your computer when you install the SDK.

To use NetKeyMonitor, double-click on the file to start the program. Click on Status Monitoring to start monitoring. A window will appear showing all active servers that can be accessed from that machine (up to a maximum of five). The maximum number of simultaneous sessions supported and the number currently in use for each server will also be shown. If the program displays No/Wrong Dongle instead of a number, it indicates either that no dongle is currently attached to that server or that the dongle attached does not have company unique codes matching the version of NetKeyMonitor in use.

How do I set the maximum number of simultaneous users in a multi-user key?

Use either WinDEMO or KLTool to set the maximum number of users.

Multi-user keys are shipped with the maximum number of simultaneous users set to 1 by default. If you wish to support more users, you must set the maximum number using either the WinDEMO or KLTool utilities supplied on our DEMO and Company Unique SDKs (in the Demos directory). You can set the number to any value from 0 to the maximum number of users supported by the hardware of the key. We also have API’s to set the maximum number of users. It is not just limited to the utilities.