MATLAB Answers

4

What is a Host ID? How do I find my Host ID in order to activate my license?

Asked by MathWorks Support Team on 17 Jul 2013
Latest activity Commented on by Kyle Perry on 29 Nov 2018 at 16:26
In order to activate my license, I must provide a Host ID. What is a Host ID and how do I find it on my computer?

Tags

No tags entered yet.

10 Answers

Answer by MathWorks Support Team on 15 Nov 2017
Edited by MathWorks Support Team on 15 Nov 2017
 Accepted Answer

Host ID is a a specific piece of information which uniquely identifies a computer. Host IDs are used to generate MATLAB license files, which are machine-specific. Most of the time, the host ID is the lowest-enumerated MAC address of the computer. However, there are exceptions to this:
  • With an individual license on a Windows machine, the Volume Serial Number of the C: drive can be used as the host ID.
  • With network licenses, the IP address can be used as the host ID. This is not recommended, as IP addresses can change due to external factors.
To find your Host ID, follow the instructions below for your operating system.
Windows
For individual licenses, the Host ID can be either the Volume Serial Number of the C: drive, or the MAC address of the network adapter.
To obtain the volume serial number, open a Windows command prompt and run the following command:
vol c:
The Volume Serial Number is the value listed at the end of the second line of output (e.g. "Volume Serial Number is 1234-ABCD")
For Network Concurrent or Network Named User licenses, the MAC address must be used as the Host ID. Additionally, computers with a B: drive must use the MAC address as the host ID.
To obtain the MAC address, open a Windows command prompt and run the following command:
getmac
If this produces multiple MAC addresses, use the one at the top of the list.
MacOS
For MacOS, the Host ID is the MAC address of the en0 device.
To obtain the MAC address of the en0 device, start by opening a Terminal window:
  • Open Finder
  • Open the "Applications" folder
  • Open the "Utilities" folder
  • Start the "Terminal" application
In the Terminal window, enter the following command:
ifconfig en0 | grep ether
The MAC address is the value listed next to "ether".
Linux
With R2014a and later, any MAC address can serve as the host ID regardless of interface name. If the interfaces are enumerated, use the lowest-enumerated interface.
To obtain the MAC address using a bash shell, run the following command:
/sbin/ifconfig <interfaceName>
Where <interfaceName> is the name of the network interface. For example, en0, eth0, wlan0, or enp5s0 are common Linux network interface names, although this will vary from computer to computer.
For R2013b and earlier, the Host ID is the MAC address of the eth0 or en0 interface.
To obtain the MAC Address using a bash shell, run the following command:
/sbin/ifconfig eth0
or
/sbin/ifconfig eth1
The MAC Address is usually the value listed next to "HWaddr". If your Linux distribution does not have network interfaces which follow the enX or ethX naming scheme, you will either need to update to MATLAB R2014a or later, or change the name of your interfaces so MATLAB can detect them. Consult your distribution's documentation for instructions on changing the network interface naming scheme.

  7 Comments

Hi Alexander,
There is no restriction on using a wireless interface as a host ID. On a retina MacBook Pro, MATLAB will use the WiFi network interface MAC address for the host ID.
MATLAB will use pretty much any network interface it can find, and activation should work long as there at least one network interface present. The terminology is a little confusing here, but all network interfaces list their MAC address after "ether" in your ifconfig output, not just Ethernet interfaces.
-Scott
MathWorks Installation & Licensing Support
This answer is very misleading. I am currently running OS X 10.12 and I can attest that supplying the en1 MAC address for license file generation does NOT work.
Apparently it only works with en0, something which I have found out the hard way after my old MacBook broke down just now and our IT department is closed down over the Holidays so I can now not get any work done...
Hi Kris,
If you are still having trouble please contact us directly for support so we can resolve the issue for you.

Sign in to comment.


Answer by Nicholas Fowler on 21 Jan 2015

I have downloaded MatLab and everything but now when I try to access it, an error pops up saying that my username does not match the username in the license file. I'm not a huge tech-guy, so could anybody give me a step process on how to solve this?
THANKS

  2 Comments

Exactly the same problem, if anybody could help... thank you
Hi,
If you are still experiencing this issue, please contact MathWorks support:
-Justin

Sign in to comment.


Answer by ThatNeuroGuy on 25 Jul 2018

It is worth noting that the default name of the ethernet connections in CentOS 7 has changed. It is now "eno#", so the command would look something like this: /sbin/ifconfig/eno1

  0 Comments

Sign in to comment.


Answer by Luca
on 23 Oct 2017
Edited by Walter Roberson
on 2 Nov 2017

Hi,I have a pc running windows7 and Fedora Linux. I installed Matlab with Campus license first on Windows, then on linux. Setup is fine, but at the launch of the matlab console command I read...
[luca@luca bin]$ matlab
rm: impossibile rimuovere '/tmp/matlab.luca.need_softwareopengl.log': Operation not permitted
/usr/local/MATLAB/R2017b/bin/matlab-glselector.sh: riga 68: /tmp/matlab.luca.need_softwareopengl.log: Permission denied
MATLAB is selecting SOFTWARE OPENGL rendering.
License checkout failed.
License Manager Error -9
Your username does not match the username in the license file.
To run MATLAB on this computer, you must run the Activation client to reactivate your license.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2017b/9
Diagnostic Information:
Feature: MATLAB
License path: /home/luca/.matlab/R2017b_licenses:/usr/local/MATLAB/R2017b/licenses/license.dat:/usr/local/MATLAB/R
2017b/licenses/license_luca_40614116_R2017b.lic
...Why? tnks

  2 Comments

Hi Luca,
Error -9 usually means that your username that MATLAB was activated to does not match the username trying to start MATLAB. I have attached a link below that explains this error and how to resolve it.
On Linux systems, the most common cause of this seems to be having answered "root" when the activation procedure asked which username to use. Another possibility is having answered with a full name instead of a username -- for example if you had replied "Luca Filippone" instead of "luca" when you ran the activation.

Sign in to comment.


Answer by Luca
on 5 Nov 2017
Edited by Walter Roberson
on 5 Nov 2017

tnks, now the error is..
[luca@Luca ~]$ matlab
Error logs successfully sent to MathWorks.
------------------------------------------------------------------------
Segmentation violation detected at Sun Nov 5 23:19:39 2017
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Current Visual : 0x65 (class 4, depth 24)
Default Encoding : UTF-8
Deployed : false
GNU C Library : 2.25 stable
Host Name : Luca.localdomain
MATLAB Architecture : glnxa64
MATLAB Entitlement ID: 4372111
MATLAB Root : /usr/local/MATLAB/R2017b
MATLAB Version : 9.3.0.713579 (R2017b)
Operating System : Linux 4.12.9-300.fc26.x86_64 #1 SMP Fri Aug 25 13:09:43 UTC 2017 x86_64
Processor ID : x86 Family 6 Model 42 Stepping 7, GenuineIntel
Virtual Machine : Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Fedora Project (11903000), display :1
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 00007f0c7060ac38 RBX = 000000000000001a
RCX = 00007f0c7060c0d8 RDX = 00000000021f6660
RSP = 00007f0ce33ad7e8 RBP = 0000000000000001
RSI = 00007ffe37ceb1b8 RDI = 0000000000000001
R8 = 0000000000000000 R9 = 0000000000000010
R10 = 00007f0c887e50b0 R11 = 0000000000000206
R12 = 00007ffe37ceb1b8 R13 = 00000000021f6660
R14 = 00007f0c7060ac30 R15 = 00007f0c887e1270
RIP = 000000000000beb0 EFL = 0000000000010246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x000000000000beb0 <unknown-module>+00000000
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.** This crash report has been saved to disk as /home/luca/matlab_crash_dump.12032-1 **
MATLAB is exiting because of fatal error
Killed

  1 Comment

You should contact Mathworks for free installation assistance.
I suspect you have problems related to libc

Sign in to comment.


Answer by Guangzhao Xu on 28 Nov 2017

What if I have only one interface lo in Linux with MAC address 00:00:00:00:00:00? Thank you very much!

  1 Comment

Then you cannot use MATLAB. Interface lo is the "local loopback" which is an internal fiction to allow the host to talk to itself. You need at least one network device configured for Linux (it does not have to be attached to the internet, but it must exist.)

Sign in to comment.


Answer by Pinar Pir on 25 Mar 2018

Hello, I find my HOST ID in windows as XXXX-XXXX, I copy paste this, but get the error: The Host ID given is not valid for the OS you have chosen. Please check the "How do I find my Host ID?" link, and be sure there are no invalid characters (!@#$%^&*():-) in your Host ID
I tried to replace - with _ or space or completely remove it, but I still get the same error.
The ID is for vol c:, and I have a d: as well, but installation is being made on c:. I tried using ID of vol d: but it does not work either.
What should I do?

  2 Comments

There is no "-" in the host ID.
vol serial numbers have not been accepted for some time. You need to use a MAC address.
If you are able to use the interactive installer then it will automatically find the host ID for you.

Sign in to comment.


Answer by montes charles on 22 Oct 2018

License checkout failed

  0 Comments

Sign in to comment.


Answer by montes charles on 22 Oct 2018

In order to activate my license, I must provide a Host ID. What is a Host ID and how do I find it on my computer?

  1 Comment

(The instructions there are perhaps a little weak for MacBook Air which might not have an en0)

Sign in to comment.


Answer by guangpeng liu on 23 Nov 2018 at 2:27

error.png,I have downloaded MatLab and install in my computer but now when the installation is over,i open the matlab program , there is a error as show in the picture , so could anybody give me a step process on how to solve this?
THANKS

  1 Comment

Hello,
The error you are receiving usually means the username you are launching MATLAB with does not match the username in the license file. In order to resolve this please re-run the MATLAB activation client and activate to the correct username.
I have attached a link below that explains this error and how to resolve it in more detail:

Sign in to comment.