Настоящий ресурс может содержать материалы 16+
Каменск-Уральский интернет портал

Форум Виртуального Каменска


Мы в социальных сетях:
Виртуальный Каменск в ВКонтакте  Виртуальный Каменск на Одноклассниках
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.
Вам не пришло письмо с кодом активации?
20 Апреля 2024, 09:27:44

Войти
* Начало Помощь Поиск Войти Регистрация
+  Виртуальный Каменск
|-+  Тематические разделы
| |-+  Технический форум (Модератор: Ариец)
| | |-+  Проброс HASPSERVERa через роутер.
Страниц: [1]   Вниз
Печать
Автор Тема: Проброс HASPSERVERa через роутер.  (Прочитано 4378 раз)
0 Пользователей и 1 Гость смотрят эту тему.
Ведметь
hardware hacker
Старожил
****

Карма: +82/-21
Offline Offline

Пол: Мужской
Сообщений: 909


в лесе жыву...


« : 09 Ноября 2010, 00:46:51 »

В мемориз для коллег:
Понадобилось пробросить сервер ключей 1С в другую подсеть. А он собака по дефолту на netbios`e работает (что не труЪ).Хотелось по TCP. Решил следующим образом:
На сервере ключей конфиг nhsrv.ini
Код:
;
; NetHASP License Manager configuration file syntax.
;
;
; Note:
;
; All text lines are commented.
; Remove comments in the lines you want to use.
;


[NHS_SERVER]

;NHS_IP_LIMIT = < IpAddr > [, <IpAddr>...]  ; Specify the range of stations
   ; the License Manager serves.
   ;
   ; Examples: 10.1.1.1, 10.1.1.*
   ; Applicable for the Win16 and
   ; Win32 License Managers.


NHS_ADAPTER_IP = 192.168.2.4
   ; Specify the adapter(s) to
   ; which the server listens.
   ;
   ; Example: 10.1.1.111-255.255.0.0
   ; Applicable only for the Win32
   ; License Manager.

на клиентах правим NETHASP.INI
Код:
;
; NetHASP Configuration file syntax.
;
;
; Note:
;
; All text lines were commented.
; Remove comments in the lines you want to use.
;


[NH_COMMON]

;
; Section-specific Keywords
;

;
; You can set only ONE of the following three Keywords to "Enabled"!
;
;;NH_IPX = Enabled or Disabled ; Use the IPX protocol
;;NH_NETBIOS = Enabled or Disabled ; Use the NETBIOS protocol
NH_TCPIP = Enabled ; Use the TCP/IP protocol

;;NH_MACHINE = IBM or NEC ; The computer on which the protected
; application is activated.
; Default: IBM

;
; General Keywords
;
;;NH_SESSION = <Num> ; See Adapting the Timeout Length
;;NH_SEND_RCV = <Num> ; in the HASP Programmer's Guide.



[NH_IPX]

;
; Section-specific Keywords for the IPX protocol.
;

;;NH_USE_BINDERY = Enabled or Disabled ; Use IPX with bindery.
; Default:  Disabled
; Ignored under Win32 API.
; This switch replaces older switch
; named NH_USE_SAP.

;;NH_USE_BROADCAST = Enabled or Disabled; Use IPX Broadcast mechanism.
; Default:  Enabled

;;NH_BC_SOCKET_NUM = <Number> ; Broadcast socket number (HEX).
; Default:  7483H

;;NH_USE_INT = 2F_NEW or 7A_OLD ; 2F_NEW means that IPX protocol will
; use interrupt 2Fh ONLY.
; 7A_OLD means that IPX protocol will
; use interrupt 7Ah ONLY.
; Default:  2F_NEW.

;;NH_SERVER_NAME = <Name1>, <Name2>,.. ; Communicate with the NetHASP
; Server with the specified name.
; Maximum: 6 names, up to 7
; case-insensitive characters each.

;;NH_SEARCH_METHOD = Localnet or Internet ; See Local Networks and
 ; Internetworks in the HASP
                                          ; Programmer's Guide.

;;NH_DATFILE_PATH = <path> ; Specify the location of the NetHASP
; License Manager's address file.

;
; General Keywords
;
;;NH_SESSION = <Num> ; See Adapting the Timeout Length
;;NH_SEND_RCV = <Num> ; in the HASP Programmer's Guide.


[NH_NETBIOS]

;
; Section-specific Keywords for the NetBIOS protocol.
;
;;NH_NBNAME = <Name> ; Assign a name to the NetHASP
; License Manager.
; 1 name possible, up to 8
; case-insensitive characters.

;;NH_USELANANUM = <Num> ; Assign a lana number to be used
; as a communication channel.
;
; General Keywords
;
;;NH_SESSION = <Num> ; See Adapting the Timeout Length
;;NH_SEND_RCV = <Num> ; in the HASP Programmer's Guide.


[NH_TCPIP]

;
; NetHASP does not support TCP/IP under DOS.
;

;
; Section-specific Keywords for the TCP/IP protocol.
;

NH_SERVER_ADDR = 192.168.2.4 ; IP addresses of all the NetHASP
; License Managers you want to search.
; Unlimited addresses and multiple
; lines are possible.
;
; Possible address format examples:
;  IP address:      192.114.176.65
;  Local Hostname:  ftp.aladdin.co.il

;;NH_PORT_NUMBER = 475 ; Set the TCP/IP port number. This is
; optional. The default number is 475.


NH_TCPIP_METHOD = TCP ; Send a TCP packet or UDP packet
; Default:  UDP
NH_USE_BROADCAST = Disabled ; Use TCPI/IP Broadcast mechanism.
; Default:  Enabled

;;NH_SERVER_NAME = <Name1>, <Name2>, ; Communicate with the NetHASP
; Server with the specified name.
; Maximum: 6 names, up to 7
; case-insensitive characters each.

;
; General Keywords.
;
;;NH_SESSION = <Num> ; See Adapting the Timeout Length
;;NH_SEND_RCV = <Num> ; in the HASP Programmer's Guide.

И соответствено пробрасываем 475 порт.
Записан

userdef
Старожил
****

Карма: +42/-17
Offline Offline

Пол: Мужской
Сообщений: 791


Постоянно на компом.


WWW
« Ответ #1 : 09 Ноября 2010, 08:36:16 »

Причем может быть как UDP так и TCP порт 475.
Записан
Страниц: [1]   Вверх
Печать
Перейти в:  

Новости
Каменска-Уральского

Все новости
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!