This document is a quick guide on the steps needed to configure GeneXus Centralized licenses scheme. for more details on the process please read Enabling centralized licenses scheme.
- Click "Start", "Administrative Tools", "Component Services".
- Expand "Component Services", "Computers".
- Right-click "My Computer" and select Properties.
- Click the "Default Protocols" tab.
- Select "Connection-oriented TCP/IP", and click Properties—if more connections are available set TCP/IP as the first of the list.
- Use the Add button to add the required port range, for example, "5000-5300". It is recommended that you have at least 300 ports available.
- Leave all other settings with default values.
Another way to setup this ports range is entering the following entrys in the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\Internet" key—if this key does not exist you must create it:
Name = Ports , Type = REG_MULTI_SZ, Value = 5000 - 5300
Name = PortsInternetAvailable, Type = REG-SZ, Value = Y,
Name = UseInternetPorts, Type = REG_SZ, Type = Y
Please use REGEDT32.EXE to configure these settings. REGEDT.EXE currently does not support the REG_MULTI_SZ type required by the ports named value entry
In short, make sure to enable the 135 port and the associated port range detailed above to connect to another machine to get licenses, otherwise you will get "Access is denied" or "The RPC server is unavailable" errors.
- Click "Start" -> "Administrative Tools" -> "Windows Firewall" and then "Advanced Settings".
- Click "Inbound Rules", and check that "COM+ Network Access (DCOM-In)" is enabled.
- Create an inbound rule for TCP Port 135, if one does not exist, allowing the connection.
- Create an inbound rule of type "Port". Select TCP and specify the port range that you used in "Enabling a port range" and set it to allow the connection.
- Create an inbound rule of type "Port". Select UDP and specify the port range that you used in "Enabling a port range" and set it to allow the connection.
- Create an inbound rule of type "Program". Select the "ProtSrv.exe"—usually instaled under "%Program Files (x86)%\Common Files\Artech\GXProt1\ProtSrv.exe"— and set it to allow the connection.
- Go to "Control Panel" -> "Administrative Tools" -> "Component Services".
- In the left tree, go to "Component Services" -> "Computers" -> "My Computer".
- Select "DCOM Config" and then select "ProtSrvService" in the applications list.
- Right click and select Properties.
- On the screen shown, you must edit the launch and activation rights and the access rights (Launch and Activation Permissions and Access Permissions) by selecting the Customize option and pressing the Edit... button. You must select total access (select the four options) for the following groups: Everyone, Network, System and Interactive, with every permission marked as "Allow".
- Verify that the distributed DCOM is enabled (in Default Properties tab, by selecting Enable distributed COM on this computer. Besides, Default Authentication Level must be in Connect and Default Impersonation Level in Identity.
- Setup access and launch rights (Access Permissions and Launch and Activate Permissions) in COM Security tab.
- You have to do the same in both places: first go to Edit Limits ... and setup the rights (for the group Everyone and ANONYMOUS LOGON), with every permission marked as "Allow".
- And then, in Edit Defaults ..., you must setup the rights for the following groups: Everyone, Network, System and Interactive , with every permission marked as "Allow".
GeneXus 9.0, and older versions, need to make callbacks to the GeneXus Protection Server
. Therefore a connection is firstly created using port 135 and then a second connection is established from the license server to the client. In order to enable this second connection—from the server to the client—through the firewall, in addition to enabling the connection through port 135, all TCP connections initialized from the server must be allowed.
A port range can be given for these connections, to do so follow the next steps:
- In the server and client PCs, enable the DCOM port range as explained in section "Enabling DCOM port (135) and applications through Windows Firewall".
- In the server PC allow all outbound connections for DCOM port 135 and to the port range used in step 1.
|Port 135 and the port range used by DCOM must be enabled in the VPN settings if the client and server are connected through a VPN.