MATLAB Answers

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

조회 수: 10,130(최근 30일)
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?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 3월 10일
편집: MathWorks Support Team 2021년 3월 10일
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
yubin dai
yubin dai 2021년 3월 29일
why it says my hostid is wrong? But I just give the same ID.

댓글을 달려면 로그인하십시오.

추가 답변(21개)

Nicholas Fowler
Nicholas Fowler 2015년 1월 21일
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

댓글을 달려면 로그인하십시오.


ThatNeuroGuy
ThatNeuroGuy 2018년 7월 25일
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 2017년 10월 23일
편집: Walter Roberson 2017년 11월 2일
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
Walter Roberson
Walter Roberson 2017년 11월 2일
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.

댓글을 달려면 로그인하십시오.


Luca
Luca 2017년 11월 5일
편집: Walter Roberson 2017년 11월 5일
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
Walter Roberson
Walter Roberson 2017년 11월 5일
You should contact Mathworks for free installation assistance.
I suspect you have problems related to libc

댓글을 달려면 로그인하십시오.


Guangzhao Xu
Guangzhao Xu 2017년 11월 28일
What if I have only one interface lo in Linux with MAC address 00:00:00:00:00:00? Thank you very much!
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 11월 28일
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.)

댓글을 달려면 로그인하십시오.


Pinar Pir
Pinar Pir 2018년 3월 25일
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
Benjamin Rinauto
Benjamin Rinauto 2021년 4월 7일
Thanks Walter. This is exactly what I ended up doing (two years running... hopefully I remember next time).

댓글을 달려면 로그인하십시오.



montes charles
montes charles 2018년 10월 22일
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
Walter Roberson
Walter Roberson 2018년 10월 22일
(The instructions there are perhaps a little weak for MacBook Air which might not have an en0)

댓글을 달려면 로그인하십시오.


guangpeng liu
guangpeng liu 2018년 11월 23일
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
Kyle Perry
Kyle Perry 2018년 11월 29일
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:

댓글을 달려면 로그인하십시오.


James Hill
James Hill 2018년 12월 28일
편집: James Hill 2018년 12월 28일
**** 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
James Hill
James Hill 2018년 12월 28일
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

댓글을 달려면 로그인하십시오.



Markus Künzli
Markus Künzli 2019년 3월 14일
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
Walter Roberson
Walter Roberson 2019년 3월 14일
You should probably contact Technical Support about this. I do not know if it can be done.

댓글을 달려면 로그인하십시오.


Tim Reichard
Tim Reichard 2020년 1월 24일
622B-CB38
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 1월 26일
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.

댓글을 달려면 로그인하십시오.


Marcos Amorim
Marcos Amorim 2020년 3월 25일
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 2020년 6월 12일
편집: Walter Roberson 2020년 6월 12일
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
Iain Whiteside
Iain Whiteside 2020년 6월 12일
THanks for your help though! We'll sort something

댓글을 달려면 로그인하십시오.


Scott Stephens
Scott Stephens 2020년 9월 4일
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
Walter Roberson
Walter Roberson 2020년 9월 5일
  • 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

댓글을 달려면 로그인하십시오.


tahir khalil
tahir khalil 2020년 9월 26일

Stavros Argyropoulos
Stavros Argyropoulos 2020년 10월 28일
편집: Walter Roberson 2020년 10월 28일
XXXX-XXXX
  댓글 수: 2
Walter Roberson
Walter Roberson 2020년 10월 28일
What was your intent in posting your hard disk serial number?
The volunteers here do not have access to the license database, so we cannot create keys or licenses.

댓글을 달려면 로그인하십시오.


Abhishek Kanakagiri
Abhishek Kanakagiri 2021년 2월 8일
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.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by