NetHASP Network Dongles

nethasp-usb nethasp-parallel

 

Drivers Located at:

On CD: \Dongles\HASP\hdd32.exe

WWW: http://www225.pair.com/magic/ftp/HASP-drivers-latest.zip (Now with Vista support)

 

License Manager Located at:

On CD: \Dongles\NetHASP\lmsetup.exe

WWW: http://www225.pair.com/magic/ftp/HASP_License_Manager.zip

 

Diagnostic Utilities Available:

Diagnostix

On CD: \Dongles\NetHASP\aksdiag\diagnostix.exe

WWW: http://www225.pair.com/magic/ftp/DiagnostiX_Installer.zip 

 

Latest versions always found at: http://www.aladdin.com/support/hasp/hasp4/enduser.asp 

 

Current Known Issues:

Please note: NetHASP dongles use the same drivers as HASP Standalone dongles, so often have the similar issues and workarounds.  Please check the HASP Standalone page to ensure that your problem is not already addressed there.  Any issues given below are specific only to NetHASP devices.

Current issues with the NetHASP dongles include:

Problem
: One machine on the network can't access the license manager, but the others can.
Workaround: Search the system for nethasp.ini on the machine that can't access the license manager.  Recently we've had several reports of nethasp.ini files turning up in C:\Windows\System\ or C:\Windows\System32\ - this means it overrides the settings of every application, rather than just one application and may prevent our software from communicating to the server.  Try renaming these files and it should resolve the issue.

Problem: Windows XP/Windows Server 2003 produces an error when attempting to install the drivers.  This seems to have been caused by some changes Microsoft made in some recent Windows Updates. 
Workaround: In order to get around this please download the latest (version 4.98 or above) drivers using the link above and install them to rectify the problem.

Problem: NetHASP dongle does not work on a laptop or machine that is not connected to a network.
Workaround: A Network dongle should generally have a network in order to function.  If you wish to run the software on a laptop or desktop machine that is not connected to a network then you will need to do the following:

  • NetHASP License Manager must be installed on the local machine
  • NetHASP License Manager must be running on the local machine
  • A special nethasp.ini file will need to be placed in the same directory as the application.  This file tells our software to look for a network dongle in a particular location (in this case the local machine).
    Download and save this file in the installation folder for the application you are trying to run. I.e. c:\program files\Maxsurf for Maxsurf applications or c:\program files\multiframe for Multiframe applications.
  • If the same machine is the server when connected to the network, then no changes need to be made when reconnecting to the network.  However, if the machine is NOT the server when located in the office (i.e. some machine on the network other than the laptop has the copy protection device inserted and license manager running),  then the NetHASP License Manager software will need to be closed and the nethasp.ini file will need to be removed/renamed. Else the laptop will not be able to find the NetHasp device and acquire a license.

Problem: NetHASP dongle doesn't work on my WAN/VPN/Network with multiple subnets.
Workaround: In larger networks clients may be unable to find the license manager through the normal broadcast method.  To solve this, client machines can be configured with a customised NetHASP.ini file which will help them locate the License Manager on the network.

  • Download the sample nethasp.ini file and open the file in notepad or any text editor.
  • Find the line:
    NH_SERVER_ADDR = 127.0.0.1

    and replace the ip address 127.0.0.1 with the IP address of the server on your network.
  • This file will then need to be placed in the same directory as the application on each client machine.  This file tells our software to look for a network dongle in a particular location on the network and not to search the local subnet for it.
    Save this file in the installation folder for the application you are trying to run.
    i.e.
    • C:\Program Files\Maxsurf 13\ for Maxsurf applications (assuming version 13) or 
    • C:\Program Files\Multiframe 10\ for Multiframe applications (assuming version 10)

 

Problem: I think my firewall may be preventing the software from obtaining a license from the license manager.  What port number does the NetHASP License Manager use?
Workaround: The NetHASP License manager uses TCP and UDP ports 475 for it's communication - so please ensure that these ports are open or that the program itself is allowed through the firewall.

Problem: NetHASP dongle cannot be detected by user.
Workaround: We've found several customers who have nethasp.ini files in core system directories - such as C:\Windows\System and C:\Windows\System32 - nethasp.ini files in this location will override any local settings that might be in place.  We recommend only placing nethasp.ini files in the same directory as the applications if they are used - this prevents them from affecting other programs that use HASP devices - including our own.  Any nethasp.ini files in common paths such as those listed above should be either renamed or removed.

Problem: Remote VPN clients over a slow link are timing out or not able to get a license.
Workaround: It's possible to tweak the timeout settings using a couple of nethasp.ini settings.

If you're not already using a nethasp.ini file for your VPN clients, then I would recommend starting with the section above "NetHASP dongle doesn't work on my WAN/VPN/Network with multiple subnets."  You will need to follow the instructions there and configure a nethasp.ini with your server IP address.  Give this a try first as it may solve your problem by itself.

If you already have a custom nethasp.ini file with the server ip specified, or still have problems after doing so, you can add a few extra lines which may help with the timeout and communication issues.

NH_SESSION = <Num>
NH_SEND_RCV = <Num>

Where <Num> is a time in seconds.

NH_SESSION sets the maximum length of time during which the application tries to establish communication with the NetHASP License Manager.  The default is 2 seconds.

NH_SEND_RCV sets the maximum length of time for the NetHASP License Manager to send or receive a packet.  The default is 1 second.

These two settings should be put under the [NH_TCPIP] section in your nethasp.ini file.

NetHASP Dongle Troubleshooting Guide

Network dongle troubleshooting can be a tricky process - mostly because every network is different and there are more steps involved in setting it up.  To that end, I've created a troubleshooting guide - with a list of 22 questions to answer which may lead to the source of the problem.

You can answer these below:

  1. Are the latest HASP drivers installed on the server machine (5.22)?
  2. Did you restart the server after installing the drivers?
  3. Are the latest HASP drivers installed on the client machine (5.22)?
  4. Did you restart the client machine after installing the drivers?
  5. Is a network dongle attached?
  6. Is it a network dongle?  colour = red, if any other colour (including purple) then not a network dongle.
  7. Is it OUR network dongle? = should have a sticker on it hopefully - and look for 'QIAZC'.
  8. Check whether DonkeyPublic can see it and check what it's programmed for.
    1. If Donkey can't detect it - drivers not installed, not a network dongle, or not our dongle.
    2. If it can, check that the licenses are correct and user has right number of licenses.
  9. Is the license manager installed?
  10. Is the license manager the latest version (8.31)?
  11. Is the license manager running? - there should be an icon on the system tray saying so.
  12. Restart the license manager to make sure it is working correctly and free up any locked licenses.
  13. Is the server/client actually on a network?
    1. If no, then check network dongle faq entry for standalone installation
  14. Are the server and client on the same subnet?
    1. if yes: is it greater than a C-class network? (ie. are the first three blocks of the ip address the same)
      1. if yes: is a nethasp.ini present?  (see nethasp.ini info)
        1. no - then create one as it may be required and would certainly be faster.
  15. is there connectivity between the server and client? - perform ping test
    1. if no, check network connection and firewalls
    2. if yes, a nethasp.ini file will be needed
  16. Perform Diagnostix on client and server machines and check the log files:
    1. Does the server machine see a dongle attached?
    2. Does the client see the server license manager?
  17. Is a nethasp.ini file present on the client machine?
    1. if yes - check the configuration of the file, including that the ip address is the right address of the server.  Also make sure that the SERVER NAME and SERVER IP are not both specified - this seems to confuse it.  You should only specify one of those.
  18. Are there any stray nethasp.ini files on the client machine?  search C:\ for 'nethasp'
  19. Are there any firewalls on client or server?
    1. yes - ensure they are configured to allow TCP/UDP port 475, or simply try turning them both off briefly to see if they are interfering.
    2. If it works with the firewall turned off, but doesn't work when firewall on even with port 475 open on the firewall, then add the application to the firewall instead.
  20. What is the exact error message given by our application? - check nethasp error code against table below and see if it gives any clue
  21. Is there more than one Formation Network Dongle available on the network?
    1. if yes, then this should work only if a nethasp.ini file is used AND the two network dongles are on different servers.
  22. Are you using Terminal Services/Remote Desktop to connect to the server? 
    1. if yes, this will prevent the license manager from running properly unless you connect to it using /Console option or simply go to the machine manually to restart it.

NetHASP Error Codes

If you're trying to diagnose why a network dongle isn't working - our software (as of MS 13 and MF 10) now displays any error codes received from trying to communicate with the nethasp dongle, and this can be useful in tracking the problem down.  Please use the following error codes - the first 128 error codes are all from the software, while the error codes from 129 and above are errors from the License Manager itself.


Error Code

Description

0

Operation successful.

1

The IPX, NetBIOS or TCP/IP protocols have not been installed properly. Act accordingly.

2

Communication error. Unable to get socket number. Applies to IPX and TCP/IP. Verify that the protocol is installed properly.

3

Communication error. - NetBIOS: Unable to establish session. Verify that the protocol is installed properly. - IPX: Unable to get NetHASP License Manager's immediate address. Verify that the protocol is installed properly. - TCP/IP: Unable to connect to the server. Verify that the server address is correct in the INI file.

4

No NetHASP License Manager was found. Check whether your software has a path and read permission to the address file.

5

Cannot read the NetHASP License Manager address file.

6

Cannot close the NetHASP License Manager address file.

7

Communication error. Failed to send packet. Verify that the protocol is installed properly.

8

No answer from the NetHASP License Manager. IPX - The network is busy or incorrect address files found. In the latter case, delete all copies of the HASPADDR.DAT and NEWHADDR.DAT files. NetBIOS - the network is busy. TCP/IP - If the TCP method is used then the network is busy. If the UDP method is used then the network is busy or there is an incorrect address in the INI file.

10

You called the hasp() routine with one of the services, without first calling the LOGIN service.

11

Communication error. Adapter error. Applies only to NetBIOS. This error can also happen when the NETBIOS protocol is not installed. Verify that the protocol is installed properly.

15

No active NetHASP License Manager was found.

18

Cannot Login because the SET_SERVER_BY_NAME call was not successful.

19

Syntax error in the NetHASP configuration file (LASTSTATUS service returns the line number in which the error occurred in Par2).  If LastStatus returns 0 in par2, either there is an environment variable with an illegal setting, or no IP address was found (when working with TCP/IP or UDP to host).

20

Error handling the NetHASP configuration file. A file operation like ”open file” or ”read file” failed. A possible reason can be that the system has run out of file handles. The LastStatus service returns the OS system error code in Par2.

21

NetHASP did not succeed in allocating memory. This error is unique to NetHASP interfaces for Microsoft Windows applications and DOS extenders. Try to free DOS memory.

22

NetHASP did not succeed in freeing memory. This error is unique to NetHASP interfaces for Microsoft Windows applications and DOS extenders.

23

Invalid NetHASP memory address.

25

Failed to load the DLL (winsock.dll or w32sock.dll). Applies only to TCP/IP or IPX.

26

Failed to unload the DLL (winsock.dll or w32sock.dll). Applies only to TCP/IP or IPX.

28

Winsock.dll startup error. Applies only to TCP/IP.

30

Failed to close the socket. Applies to TCP/IP only.

33

Protocol already set. Returned only when you attempt to set the protocol without having logged out completely from the API.

129

The correct NetHASP key is not connected to the NetHASP License Manager.

130

The Program Number (Prg Num) specified is not in the Program List of the NetHASP memory.

131

Error reading from NetHASP memory.

132

Error writing to NetHASP memory.

133

The current LOGIN request exceeds the number of stations which may run the software concurrently.

134

The current LOGIN request exceeds the number of authorized activations for the software.

135

You called the hasp() routine with the LOGOUT service without first calling the LOGIN service.  This can happen when the License Manager was reloaded or you have been logged out from the License Manager.

136

The NetHASP License Manager is busy. This may occur if your NetHASP system is not well adapted to the network.

137

There is no space in the NetHASP user list.

138

Internal NetHASP error. The Number of Authorized Stations is larger than the maximum number designated by the NetHASP model.

139

The NetHASP License Manager crashed and was reactivated, or you called the hasp() routine with one of the services without first calling the LOGIN service.

140

The NetHASP Licence Manager does not serve your station's network.

141

Invalid service, or new version of the HASP API is communicating with an older version of the NetHASP License Manager.

142

Cannot find the NetHASP License Manager matching the name specified in the NetHASP configuration file.

150

No NetHASP License Manager with the assigned name was found (this error is returned by SET_SERVER_BY_NAME).

151

Two or more different NetHASP License Managers with the assigned name were found (this error is returned by SET_SERVER_BY_NAME).

152

The encode operation failed because the service was not supported by the hardware.

153

The decode operation failed because the service was not supported by the hardware.

155

An old version of the License Manager has been found. The API used required a newer version of the License Manager to be installed.



Copyright © - Formation Design Systems Pty Ltd trading as FormSys