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

13,188 views (last 30 days)
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?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Mar 2021
Edited: MathWorks Support Team on 10 Mar 2021
A 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 and Designated Computer 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 the 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, eno1, eth0, wlan0, or enp5s0 are common Linux network interface names, although this will vary from computer to computer.
You can also run the following command if you don't have net-tools installed:
ip addr | grep ether
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.
  13 Comments

Sign in to comment.

More Answers (26)

Nicholas Fowler
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
  7 Comments

Sign in to comment.


ThatNeuroGuy
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

Luca
Luca on 23 Oct 2017
Edited: 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
Walter Roberson
Walter Roberson on 2 Nov 2017
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.


Luca
Luca on 5 Nov 2017
Edited: 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
Walter Roberson
Walter Roberson on 5 Nov 2017
You should contact Mathworks for free installation assistance.
I suspect you have problems related to libc

Sign in to comment.


Guangzhao Xu
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
Walter Roberson
Walter Roberson on 28 Nov 2017
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.


Pinar Pir
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?
  10 Comments
Benjamin Rinauto
Benjamin Rinauto on 7 Apr 2021
Thanks Walter. This is exactly what I ended up doing (two years running... hopefully I remember next time).

Sign in to comment.



montes charles
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?

guangpeng liu
guangpeng liu on 23 Nov 2018
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
Kyle Perry
Kyle Perry on 29 Nov 2018
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.


James Hill
James Hill on 28 Dec 2018
Edited: James Hill on 28 Dec 2018
**** I deleted my last activation for the website and re-ran the activation and it work******
License checkout failed.
License Manager Error -9
The hostid of your computer ("72e61f774187 80fa5b61132c") does not match the hostid of the license
file (064303c59aa9).
To run MATLAB on this computer, you must run the Activation client to reactivate your license.
License checkout failed.
License Manager Error -9
The hostid of your computer ("de026e164bfb 80fa5b61132c") does not match the hostid of the license
file (227476e03f48).
License Manager Error -9
The hostid of your computer ("82a0913137be 80fa5b61132c") does not match the hostid of the license
file (426c28538ee0).
To run MATLAB on this computer, you must run the Activation client to reactivate your license
License Manager Error -9
The hostid of your computer ("5eb0f3ee0874 80fa5b61132c") does not match the hostid of the license
file (3e282db599ea).
I activate. Use my standard account login name. Run matlab immediatlely after activation. Host ID keeps changing from one activation attempt to the next. It was working fine until I installed Parallel Toolbox.
My OS is:
Linux enkidu-t3a 4.19.12-2-MANJARO #1 SMP PREEMPT Sun Dec 23 19:08:00 UTC 2018 x86_64 GNU/Linux
inxi -n:
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
IF: enp111s0 state: up speed: 1000 Mbps duplex: full mac: 80:fa:5b:61:13:2c
Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi
IF: wlp113s0 state: down mac: 96:5a:28:6b:14:48
  2 Comments
James Hill
James Hill on 28 Dec 2018
Hi Walter,
I thought about the dynamic MAC addressing, however, if you look at my inxi -n output and the MAC address from that and compare it to the supposed HOST ID that never changes.
I just looked at my activated license. The activation label does reference my Wireless MAC and Host ID references the Wired so that may be the problem. Since MATHWORKS fails to propertly document or describe how the activation label works in situ with HOST ID it was not obvious at first.
The disconcerting aspect is why it took several activation attempts with no reboots to "fix" with no other changes to the system. I personally gained no understanding of what I did between working and not working.
I would suggest starting with a clean slate if this problem arises. Delete all the activations on the MATHWORKS website and your .lic file locally.
If you use Arch Linux or an Arch derivative:
as well as Walter's links above
From:
hwinfo:
92: None 00.0: 10701 Ethernet
[Created at net.126]
SysFS ID: /class/net/wlp113s0
SysFS Device Link: /devices/pci0000:00/0000:00:1d.7/0000:71:00.0
Hardware Class: network interface
Model: "Ethernet network interface"
Driver: "iwlwifi"
Driver Modules: "iwlwifi"
Device File: wlp113s0
HW Address: f2:8a:8c:c2:47:b7
Permanent HW Address: 34:e1:2d:df:1d:49
Link detected: no
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #27 (WLAN controller)
----- where as ----- Wired
91: None 00.0: 10701 Ethernet
[Created at net.126]
SysFS ID: /class/net/enp111s0
SysFS Device Link: /devices/pci0000:00/0000:00:1d.5/0000:6f:00.0
Hardware Class: network interface
Model: "Ethernet network interface"
Driver: "r8169"
Driver Modules: "r8169"
Device File: enp111s0
HW Address: 80:fa:5b:61:13:2c
Permanent HW Address: 80:fa:5b:61:13:2c
Link detected: yes
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #26 (Ethernet controller)
--------
Why MATHWORKS ever thought that using the MAC addres was a "smart" idea when it can be changed for valid sercurity reasons or at least choosing to the use the correct HW address.
Here is something interresting:
sudo inxi -n -v4
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: CLEVO/KAPOK driver: r8169 v: kernel
port: 3000 bus ID: 6f:00.0
IF: enp111s0 state: up speed: 1000 Mbps duplex: full mac: 80:fa:5b:61:13:2c
Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: 3000 bus ID: 71:00.0
IF: wlp113s0 state: down mac: 66:53:f3:57:d6:46
MATHWORKS the above is what I mean by "not smart".
When items in these groups below of have a much better chance of being stable:
Drives: Local Storage: total: 2.98 TiB used: 44.31 GiB (1.5%)
ID-1: /dev/mmcblk0 model: 00000 size: 238.50 GiB
ID-2: /dev/nvme0n1 vendor: Samsung model: SSD 970 PRO 1TB size: 953.87 GiB
ID-3: /dev/sda vendor: Seagate model: ST2000LX001-1RG174 size: 1.82 TiB
Partition: ID-1: / size: 937.28 GiB used: 44.31 GiB (4.7%) fs: xfs dev: /dev/nvme0n1p1
ID-2: swap-1 size: 15.62 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p2
Machine: Type: Laptop System: System76 product: Oryx Pro v: oryp4-b serial: N/A
Mobo: System76 model: Oryx Pro v: oryp4-b serial: N/A UEFI: American Megatrends v: 1.07.05RSA3S76 date: 06/14/2018
Which would allow us, who travel, to opt for a higher level of security.
James

Sign in to comment.



Markus Künzli
Markus Künzli on 14 Mar 2019
Hi Guys,
Is there a way to don't use a MAC-Address for a Linux installation?
Our MatLab installations are on a bootable Stick for exams, so the problem is everytime a Stick is mounted on another Computer the MAC-Adress is not the one we licened. The Stick has no internet access!
Thanks for your help!
Simon
  1 Comment
Walter Roberson
Walter Roberson on 14 Mar 2019
You should probably contact Technical Support about this. I do not know if it can be done.

Sign in to comment.


Tim Reichard
Tim Reichard on 24 Jan 2020
622B-CB38
  1 Comment
Walter Roberson
Walter Roberson on 26 Jan 2020
None of the volunteers who answers questions here can do anything useful with a drive serial number. In particular, we cannot generate license keys for you from it. You will probably need to contact Mathworks Support for free installation assistance.

Sign in to comment.


Marcos Amorim
Marcos Amorim on 25 Mar 2020
I bought the student matlab and the order came up. But I did not receive the activation key. Today I log into the account I created, the orders do not appear and I do not know how to get the activation key. Marcos A G Amorim Brazil
I Pay with card


Iain Whiteside
Iain Whiteside on 12 Jun 2020
Edited: Walter Roberson on 12 Jun 2020
License activation won't accept the MAC addresses of our three redundant NLM servers They are configured as:
00:00:00:00:00:01
00:00:00:00:00:02
00:00:00:00:00:03
As they are running in docker hosts on AWS. Why aren't these valid addresses accepted?
  3 Comments

Sign in to comment.


Scott Stephens
Scott Stephens on 4 Sep 2020
Does anyone know how I can get through this licensing requirement for a virtual machine with no MAC address?
I'm trying to get Matlab installed on a Codeanywhere container running Ubuntu, with no luck.
box@Mat:/$ ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:22475 errors:0 dropped:0 overruns:0 frame:0
TX packets:11661 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25693470 (25.6 MB) TX bytes:1022082 (1.0 MB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:172.52.38.98 P-t-P:172.52.38.98 Bcast:172.52.38.98 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
No intelligible MAC address here :(
Because, there's no network card on this virtual machine
box@Mat:/tmp$ inxi -n
Network: Card: Failed to Detect Network Card!
Pretty annoyed. I can run completely free software like Rserver, Julia etc, but the software I have to pay thousands for doesn't work....
  1 Comment
Walter Roberson
Walter Roberson on 5 Sep 2020
  • MAC address of all zero is a forbidden MAC address. Whoever designed that software did so in defiance of standards. Mathworks is entitled to expect that you will only use it in a standards compliant environment.
  • venet interfaces cannot have a MAC address configured for them.
  • so you will need to add a virtual interface.
  • veth can have MAC addresses configured for them. I do not know if MATLAB enumerates veth for licensing though.
  • you can configure a virtual eth0 and MATLAB would very likely find that
  • http://updates.virtuozzo.com/doc/pcs/en_us/virtuozzo/6/current/html/Virtuozzo_Users_Guide/35847.htm

Sign in to comment.


tahir khalil
tahir khalil on 26 Sep 2020

Stavros Argyropoulos
Stavros Argyropoulos on 28 Oct 2020
Edited: Walter Roberson on 28 Oct 2020
XXXX-XXXX

Abhishek Kanakagiri
Abhishek Kanakagiri on 8 Feb 2021
For Linux/Ubuntu Users, the Host id can be found in settings -> Network -> setting icon next to Wired/Wireless conncetion -> In details tab, the Hardware address is the Host id for the system.


Pawel Kubik
Pawel Kubik on 20 Jul 2021
Edited: Pawel Kubik on 20 Jul 2021
Do MAC address used as Host ID must be the first of list displayed in terminal (getmac)?
In my case the mac is assignet to Hyper-V virtual switch. If I delelete the switch I will need to regenerate licence file for the computer?
  1 Comment
Colin Fraser
Colin Fraser on 21 Jul 2021
It should be whatever the actual physical card's address is. This may not be the first but the second. If you delete the switch, you will need to regenerate the license file.
If you are still experiencing this issue, please create a service request below.
-Colin Fraser

Sign in to comment.


mahesh vyas
mahesh vyas on 22 Jul 2021
Edited: Jan on 26 Jul 2021
Sir
I have change my PC due to trouble in old PC. My new Host ID and user name are as follows:
Host ID: DISK_SERIAL_NUM=b026xxxxx
Release: R2008b Windows
User Name: camvc216mahesh
My Installation Key is xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
when i running the MATLAB the error has been shown on screen
I receive License Manager Error -9?
please rectified my problem
my email id is mc.vyas@gmail.com
  2 Comments
Walter Roberson
Walter Roberson on 26 Jul 2021
The use of disk serial number and activation keys for installation narrow this situation down to a Windows installation of a Student license (well, we need the additional information about it being R2008b to completely rule out the possibility of it being a Home license.)

Sign in to comment.


Ferdinand Bogos
Ferdinand Bogos on 3 Oct 2021
My matlab installation licence number is not activated
  1 Comment
Walter Roberson
Walter Roberson on 3 Oct 2021
The volunteers who answer questions here do not have access to the license database. You will need to contact Mathworks Support for free installation assistance.

Sign in to comment.


Veronica Ghambuna
Veronica Ghambuna on 6 Nov 2021 at 15:54
62b54bc2
  1 Comment
Walter Roberson
Walter Roberson on 6 Nov 2021 at 20:54
That is not a MAC (Media Access Control) identifier: that is probably a disk serial number.
The volunteers who answer questions here do not have access to the license database, so we are not able to do anything with that information.

Sign in to comment.


Oliver Zhou
Oliver Zhou on 12 Nov 2021 at 1:43
Hi,
I am running a virtual macOS machine using the Macinabox container on Unraid. When I try to activate MATLAB, it gives me "Error 1,714. Unable to activate your machine. This activation process cannot detect a valid Hist ID which utilizes a currently supported naming convention. Please refer to the following solution ID to help resolve the issue 1-661QJD".
When I use ifconfig to see the Host ID of the VM, it gives me a valid en0 MAC address. However, if I try to let MATLAB detect the Host ID (using the offline install "I do not have a license file" option), it says that the Host ID of the VM is just 0. I also tried manually downloading a license file from Mathworks with the MAC address I got from ifconfig, but then MATLAB says that the license file is for a different computer.
I think I'm unable to activate MATLAB because it is failing to detect the MAC address of my VM, even though I think I have a valid one...
Any advice would be greatly appreciated, thanks!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!