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

6.237 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 28 Dic 2023
Modificato: MathWorks Support Team il 28 Dic 2023
A Host ID is 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. If you are trying to use an IP address as your Host ID on Windows, please review this article here if you are running into issues.
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.
To obtain the MAC address, open a Windows command prompt and run the following command:
getmac -v
The MAC address is in the "Physical Address" column. 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.
  2 Commenti
Walter Roberson
Walter Roberson il 11 Mag 2019
In the terminal app, execute
netstat -i
and see if it is showing an MAC addresses with 00:00:00:00:00:00 that might be contributing.
The primary MAC address that is used for IPv4 will sually show up on a line marked with '<Link#' . For example,
en0 1500 <Link#5> 48:61:79:69:6d:44 57105595 0 34859208 0 0
Here the MAC address used for IpV4 would be 48:61:79:69:6d:44 .
There will also be an entry showing the IP address for the link, such as
en0 1500 192.168.0 192.168.0.10 57105595 - 34859208 - -
If you see an interface that does not have any IP address entry, then that interface is not currently being used as your network interface.
You might see multiple interfaces with an IP address; for example my en1 interface is my wifi interface.
Walter Roberson
Walter Roberson il 13 Mag 2019
Odd, it normally cannot get to that point without throwing a warning message about the ethernet not being found.
The only time in the last couple of years that I have seen Host ID 0 was while I was testing MATLAB in a Parallels virtual machine using Parallels 14; I was able to prove that the fault was Parallels 14 with Parallels 13 having worked.

Accedi per commentare.

Più risposte (0)

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by