Contact us

How to install a License Server (Mac)

Updated on Sep 7, 2023

Here are the instructions to set up your campus/concurrent licenses. This will allow you to provide licenses to your users and to also manage these licenses. Please go through the following steps to complete the setting up process.

Note: The license server will use TCP port 15500. Make sure that your client and server firewalls allow TCP connections to this port.

1. Download the license server setup file: MAC License Server v.2.3.0

2. Double click on the .dmg file and then double click in the pkg file to install the program in your computer. (You might need to enable the Security & Privacy settings to complete the installation)

3. Follow the instructions on the installation wizard.

Please note that the new MlicServer version 2.2.0, by default, only allows MLicAdmin connection to ‘localhost’. If you need to use MLicAdmin from any other machine than the local machine –where the server is running–  then you must allow it from the MLicAdmin. So for the first time, the MLicAdmin must be run in the same computer where the server is running and the server name must be ‘localhost’ or the IP address ‘127.0.0.1’.

4. Installation details: MestrelabLicServer will be installed as a launched service in /opt/mestrelablicserver and it will run automatically when the computer boots up.

  • If you want to stop the server, type on a terminal:
    • sudo launchctl unload /Library/LaunchDaemons/com.mestrelab.mlicserver.plist
  • If you want to start the server, type on a terminal:
    • sudo launchctl load /Library/LaunchDaemons/com.mestrelab.mlicserver.plist

5. Run now MLicAdmin (installed in the Applications folder)

6. Copy the Host ID from the MLicAdmin main window and send it to us by email to support@mestrelab.com. Please also send us the server IP address (or the server hostname):

7. We will write back to you with a license file, which you must save in /opt/mestrelablicserver/bin/licenses. (If you have renewed the Update&Support package, please make sure that you remove the old license file)

8. Restart the server (see point 4 for further information about it).

9. Now if you run again MLicAdmin you will see an item in the Licenses table. If no item shows, it means that either the license file was not correctly installed or the license file is invalid.

10. You must provide your users a copy of the license file that Mestrelab provided you before. But first, you must edit the license file to add the server hostname or IP address information to allow your users to validate against your server. For example, if you receive the following license file (The license file is a XML file with .lic extension, that you can open with any text editor):

<mlic version=”1.0″> <licid>{b62b493d-9e6d-40f0-a0e6-c728c46fc3b2}</licid> <type>floating</type> <hostid>7S7YJ-67R8WBEX-ZE5VW-FXCXVVME</hostid> <vendor>Mestrelab Research S.L.</vendor> <purchaser>John Doe</purchaser> <product>NMR</product> <version>1.0</version> <uuid>{5b0a2812-8ee2-406f-8030-84f5f6ac4a4b}</uuid> <count>2</count> <issued>2007-05-24</issued> <expires>never</expires> <update>2008-05-24</update> <sign>Lk8NmBTei5ewmCzGYEAg</sign> </mlic>

Using your preferred text editor, you must add the following line between the mlic opening tag (<mlic>) and the closing one (</mlic>):

<server>SERVER_NAME</server>

If you have problems or are not confident with this process, just write to us with the IP address for the server and we will include them in the license file before sending it back to you. Changing SERVER_NAME by either your server hostname or your server IPv4 address in dot notation (bear in mind that if the server´s IP address is dynamic, you must use the server hostname instead of the IP address in dot notation). So, using the previous sample, you will get the next file after editing:

<mlic version=”1.0″> <licid>{b62b493d-9e6d-40f0-a0e6-c728c46fc3b2}</licid> <type>floating</type> <hostid>7S7YJ-67R8WBEX-ZE5VW-FXCXVVME</hostid> <vendor>Mestrelab Research S.L.</vendor> <purchaser>John Doe</purchaser> <product>NMR</product> <version>1.0</version> <uuid>{5b0a2812-8ee2-406f-8030-84f5f6ac4a4b}</uuid> <count>2</count> <issued>2007-05-24</issued> <expires>never</expires> <update>2008-05-24</update> <sign>Lk8NmBTei5ewmCzGYEAg</sign> <server>192.168.2.5</server> </mlic>

11. You can now circulate an email to your users asking them to download Mnova.

12. In this step there are two options: The first one will be to save the license file you have edited following the instructions (in the step number 10) in a shared folder. We strongly recommend this option, because in the future you will not need to worry about sending new license files each year when you renew the Update&Support package of our products. Just go through the following steps:

  • a) Define a path accessible by all the Mnova clients in the server computer.
  • b) Copy all the license files that you want to share with your clients to the path
  • c) For windows clients: Create a .reg file with the following information
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSoftwareMestrelab Research S.L.MestReNovaLicense]
“SharedRepository”=”//MestreLab/licenses”

If you need to activate licenses for Mnova Lite, the .reg file must contain this line (instead):

[HKEY_CURRENT_USERSoftwareMestrelab Research S.L.MestReNova LITELicense]

Send this .reg file to the clients. The clients will only need to double click on it in order to import the registry configuration. Of course, it is possible to do that by batch scripting.

For Mac users: They will have to edit the property_list file which file is located at:

HOME/Library/Preferences/com.mestrelab.MestReNova.plist They can use any preferences editor to do it. Basically, they will need to add a new item with the name License.SharedRepository and the corresponding path of the license.

They can use for example this editor: http://www.apple.com/downloads/macosx/system_disk_utilities/prefedit.html

For Linux users, they will need to edit the following text file:

.config/Mestrelab Research S.L./Mestrenova.conf

Search for the [License] section inside the file and add the following line to that section (If the section doesn’t exist, add the section just typing [License]).

SharedRepository = path

An alternative option (not recommended*) is to circulate an email to your users attaching the license file you have edited following the instructions in the previous step and go through the steps 13 and 14.

*(Please note that this option would work just fine but we do not recommend it due to the fact that it will require a distribution of the license files for activation to all client computers each time you purchase a new Update and Support package)

13. Instruct them to save it on disk and, once they have run Mnova, go to ‘Help/Get-Install’ menu and click on ‘Install’ button (‘Help/Evaluate-Buy’ and click on ‘Activate’ if you are using Mnova v8.0.0 or older) then navigate to the license file and double click on it.

14. The application should be activated and your users should now have access to the software.

Once you are all set please follow this link with instructions to manage campus or floating licenses with MlicAdmin

This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.