Professional Documents
Culture Documents
Nethasp PDF
Nethasp PDF
This document was extracted from the larger NetHASP Developer's Guide.
This document contains information on how to setup the
NetHASP Hardware Lock on your network.
What is NetHASP?
NetHASP is a HASP designed for networks. It lets you effectively
license your application in network environments by controlling the
number of software copies that can run at the same time. By
connecting a single NetHASP to any computer in the network, you
can secure your application against unauthorized use, and monitor
the number of stations using your application simultaneously.
01intro1.book Page 26 Friday, November 3, 2000 2:04 PM
Do not confuse the NetHASP login and logout with the standard
Note network login and logout.
NetHASP Models
NetHASP keys come in several models. Each NetHASP model can
protect up to 112 applications. The NetHASP model number
determines the maximum number of licenses available to each
application (i.e. the maximum number of stations that can access the
application at the same time). For example, HASP4 Net5 can allow
from zero to five licenses. Other models allow up to 10, 20, 50, or 100
licenses. With HASP4 NetU, your application can have an unlimited
number of licenses.
01intro1.book Page 28 Friday, November 3, 2000 2:04 PM
Answer No. You can install the NetHASP key and the NetHASP License
Manager on any station in the network. The designated station must
be active and the NetHASP License Manager loaded for as long as any
NetHASP-protected application is running.
Answer Yes. The Monitor utility shows you all the stations activating an
application that has performed a NetHASP login to the NetHASP
License Manager. See Chapter 18 for details.
Question If I connect two HASP4 Net5 keys of the same developer code to a
single station, will I receive 10 licenses?
Answer No. When two NetHASP keys with the same developer code are
daisy-chained on the same computer, only one NetHASP responds. To
enable ten licenses with two HASP4 Net5 keys, connect each key to a
separate station and run the correct NetHASP License Manager.
Alternatively, use a HASP4 Net10.
Answer All your customer needs to do is connect your NetHASP to the one
already installed. The already loaded NetHASP License Manager
serves both NetHASPs.
01intro1.book Page 31 Friday, November 3, 2000 2:04 PM
Question When using NetHASP, on which station do I need to install the HASP
Device Driver?
Installing NetHASP on a
Network
IPX
Table 17.1: Customizing NetHASP under IPX
DOS and Win16 enabled disabled NetHASP client uses SAP Broadcast
(default method).
DOS and Win16 enabled enabled NetHASP client uses Novell Bindery.
If fails, uses SAP Broadcast.
DOS and Win16 disabled enabled NetHASP client uses Novell Bindery.
If fails, uses address file.
DOS and Win16 disabled disabled NetHASP client uses address file.
TCP/IP
Table 17.2: Customizing NetHASP under TCP/IP
NetBIOS
Table 17.3: Customizing NetHASP under NetBIOS
IPX Support
NetHASP under IPX supports the following mechanisms:
• Novell SAP (Bindery)
Novell mechanism that enables registration of applications that
need network advertising.
• Broadcast
While stations broadcast to the network, the NetHASP License
Manager constantly listens in.
• NetHASP Address File
Advertising the NetHASP License Manager through a file
mechanism (address file).
TCP/IP Support
In environments that support TCP/IP, NetHASP operates in two
modes:
• TCP, UDP
The address of the NetHASP License Manager is specified.
• UDP Broadcast
While stations broadcast to the network, the NetHASP License
Manager constantly listens in.
NetBIOS Support
NetHASP supports various types of NetBIOS including Microsoft
NetBEUI.
01intro1.book Page 220 Friday, November 3, 2000 2:04 PM
The NetHASP License Manager you use should comply with the
operating system of the computer on which it is loaded. NetHASP
License Managers can load only on their respective operating
systems, and only once per session.
The following table shows the protocol support for NetHASP License
Managers under various operating systems.
NetHASP License
Operating System IPX TCP/IP NetBIOS
Manager
DOS haspserv.exe ✓ ✓✝
Tip To load the NetHASP License Manager automatically, add the line
load haspserv to the autoexec.ncf file in the sys:system directory.
Begin
(1) perform a NetHASP login using the IPX protocol, allow n seconds for suc-
cess;
if login succeeds, continue using IPX;
else
(2) perform a NetHASP login using the TCP/IP protocol, allow n seconds for
success; if login succeeds, continue using TCP/IP;
else
End
Win32 Applications
Win32 applications search on all detected lana numbers for a
NetHASP key. That is, the search does not end when a NetHASP
License Manager answers, but rather when a NetHASP License
Manager with the right NetHASP key answers.
The Win32 NetHASP License Manager listens on all detected lana
numbers.
Because communication on all detected lana numbers takes time, an
attempt is made to communicate on a single lana number per
iteration session. If communication fails, the next iteration session
uses the next detected lana number.
If more than three lana numbers are detected and the algorithm loop
Note terminates its three iterations, step (3) in the algorithm is performed
again using the remaining unchecked lana numbers.
UDP Broadcast
1 Load the NetHASP License Manager with the -tcpip switch.
2 Edit the nethasp.ini file as follows:
• In the [NH_COMMON] section, set NH_TCPIP = Enabled
• In the [NH_TCPIP] section, set NH_TCPIP_METHOD = UDP
• In the [NH_TCPIP] section, set NH_USE_BROADCAST = Enabled
3 Copy the edited nethasp.ini file to a location accessible by the
application.
This option is the default. It is also used by the automatic search (step
(2) in the search algorithm). It instructs the NetHASP system to use
the broadcast mechanism to search for the NetHASP License
Manager.
Note that with this setting, NetHASP clients cannot access NetHASP
License Managers which are located in other subnets or on the
Internet.
01intro1.book Page 230 Friday, November 3, 2000 2:04 PM
UDP to Host
1 Load the NetHASP License Manager with the -tcpip switch.
2 Edit the nethasp.ini file as follows:
• In the [NH_COMMON] section, set NH_TCPIP = Enabled
• In the [NH_TCPIP] section, set NH_TCPIP_METHOD = UDP
• In the [NH_TCPIP] section, set NH_SERVER_ADDR = <IP address of
the NetHASP LM, or the NetHASP LM host name>
• In the [NH_TCPIP] section, set NH_USE_BROADCAST = Disabled
3 Copy the edited nethasp.ini file to a location accessible by the
application.
This option instructs the NetHASP client to search for a NetHASP
License Manager with the specified IP address or host name. This
option lets the NetHASP cross subnets when a router is operational.
TCP/IP
1 Load the NetHASP License Manager with the -tcpip switch.
2 Edit the nethasp.ini file as follows:
• In the [NH_COMMON] section, set NH_TCPIP = Enabled
• In the [NH_TCPIP] section, set NH_TCPIP_METHOD = TCP
• In the [NH_TCPIP] section, set NH_SERVER_ADDR = <IP address of
the NetHASP LM, or NetHASP LM Host name>
3 Copy the edited nethasp.ini file to a location accessible by the
application.
This option instructs the NetHASP client to search for a NetHASP
License Manager with the specified IP address or host name. This
option lets NetHASP cross subnets when a router is operational.
This option triggers automatic dialing on computers configured for
Note dial-up networking. This is a known side effect of initiating a TCP
session on such a computer. If your only use of TCP/IP is for dial-up
networking, you should use one of the two options above, or a
different protocol.
01intro1.book Page 231 Friday, November 3, 2000 2:04 PM
[NH_COMMON]
Section-Specific Keywords
Keyword: NH_IPX
Keyword: NH_NETBIOS
Keyword: NH_TCPIP
Keyword: NH_MACHINE
Default: IBM
General Keywords
Keyword: NH_SESSION
Default: 2 seconds
Keyword: NH_SEND_RCV
Default: 1 second
01intro1.book Page 244 Friday, November 3, 2000 2:04 PM
[NH_IPX]
Section-Specific Keywords
Keyword: NH_USE_BINDERY
Default: disabled
Keyword: NH_USE_BROADCAST
Default: enabled
Keyword: NH_BC_SOCKET_NUM
Default: 7483H
Keyword: NH_USE_INT
Default: 2F_NEW
Keyword: NH_SERVER_NAME
Keyword: NH_SEARCH_METHOD
Default internet
Keyword: NH_DATFILE_PATH
General Keywords
Keyword: NH_SESSION
Keyword: NH_SEND_RCV
Default: 1 second
01intro1.book Page 246 Friday, November 3, 2000 2:04 PM
[NH_NETBIOS]
Section-Specific Keywords
Keyword: NH_NBNAME
General Keywords
Keyword: NH_SESSION
Default: 2 seconds
Keyword: NH_SEND_RCV
Default: 1 second
01intro1.book Page 247 Friday, November 3, 2000 2:04 PM
[NH_TCPIP]
Section-Specific Keywords
Keyword: NH_SERVER_ADDR
Keyword: NH_SERVER_NAME
Keyword: NH_PORT_NUMBER
Keyword: NH_TCPIP_METHOD
Keyword: NH_USE_BROADCAST
General Keywords
Keyword: NH_SESSION
Keyword: NH_SEND_RCV
Default: 1 second
01intro1.book Page 249 Friday, November 3, 2000 2:04 PM
[NHS_SERVER]
Keyword: NHS_IP_LIMIT
Keyword: NHS_ADAPTER_IP
-? ◆ ◆
-addrappend ◆ ◆ ◆
-addrpath ◆ ◆ ◆
-help ◆ ◆
-highpriority ◆
-ibm ◆ ◆ ◆
-ibm36 ◆ ◆ ◆
-ipx ◆ ◆
-ipxnosap ◆ ◆ ◆
-ipxsocketnum ◆ ◆ ◆
-localnet ◆ ◆ ◆
-maxlananum ◆
-nbname ◆ ◆
-nec ◆
-net ◆
-netbios ◆ ◆
-nethaspnbname ◆ ◆
-openmin ◆
-portnum ◆
-r ◆
-saptofile ◆
-srvname ◆ ◆ ◆
-tcp/ip ◆
-uselananum ◆ ◆
-userlist ◆ ◆
01intro1.book Page 253 Friday, November 3, 2000 2:04 PM
When you use this switch, the NetHASP License Manager creates a file
called newhaddr.dat. This file contains the node address of the station
running the NetHASP License Manager. When you load the NetHASP
License Manager with this switch, only protected applications with
access to newhaddr.dat can communicate with the NetHASP License
Manager.
-ipxsocketnum=<number> Use this switch if you want to change the IPX socket the License
Manager is using for communication. The default is 7483 (hex).
-localnet Use this switch if you want the NetHASP License Manager to serve only
requests from stations in the local network.
If requests come from stations that are not part of the local network, the
NetHASP License Manager returns error 140.
-maxlananum=<number> Use this switch to configure the number of LANA numbers the License
Manager will support. The default is 6 (i.e. LANA 0 through 5).
-nbname=<name> Assign a NetBIOS name to the NetHASP License Manager. This switch
is identical to the -nethaspnbname switch.
-nec Use this switch with NEC computers to search for NetHASP36 keys only.
-net Advertise the NetHASP License Manager address with a specific local
network number.
01intro1.book Page 254 Friday, November 3, 2000 2:04 PM
Switch* Explanation
-netbios Force the NetHASP system to listen only to the NetBIOS protocol. With
the NetHASP License Manager for Win32, you can still load other
protocols by using either the -tcpip or -ipxnosap switch or both.
-nethaspnbname= Assign a NetBIOS name to the NetHASP License Manager. This switch
<name> is identical to the -nbname switch.
-openmin Load the NetHASP License Manager program with its window
minimized. By default the window is maximized.
-portnum=<number> If you are using the TCP/IP protocol, you can use this switch to instruct
the NetHASP License Manager to listen to the port you specify. The
default Port Number is 475.
-r Remove the NetHASP License Manager from memory.
-saptofile When you use this switch, the NetHASP License Manager creates the
newhaddr.dat file. This file contains the node address of the station
running the NetHASP License Manager.
- Assign one or more IPX, TCP/IP or NetBIOS names to the NetHASP
srvname=<name>[,name] License Manager. You can assign up to six names for IPX and TCP/IP
or one name for NetBIOS.
-tcpip Force the NetHASP system to listen only to the TCP/IP protocol. With
the NetHASP License Manager for Win32, you can still load other
protocols by using either the -ipxnosap or -netbios switch or both.
-uselananum=<x>[,<x>] Instruct the NetHASP License Manager to listen to specific lana
numbers.
-userlist Limit the maximum number of protected applications.
* When Netware NLM is used, all switches which require a value to be passed must be used
without the “=” sign, e.g. -ipxsocketnum 7483.
01intro1.book Page 255 Friday, November 3, 2000 2:04 PM
3 Copy the protected application and the nethasp.ini file to the same
directory. Make sure that each station in the range, and only stations
in the range, load the application from this directory.
3 Copy the protected application and the nethasp.ini file to the same
directory. Make sure that each station in the range, and only stations
in the range, load the application from this directory.
You cannot have two stations with the same NetBIOS name. If you
Note want to load the NetHASP License Manager on more than one station,
you must define a different NetBIOS name for each NetHASP License
Manager.