MATLAB Answers

0

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 Edited by MathWorks Support Team on 4 Dec 2015

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?

  0 Comments

Tags

No tags are associated with this question.

Products

No products are associated with this question.

2 Answers

Answer by MathWorks Support Team on 7 Dec 2015
 Accepted answer

When a license file is generated for a specific computer, it is locked to a number that is unique to that machine.

For Windows, Mac, and Linux, MAC Address is used.

For Solaris, CPU hostid is used.

For Windows, Volume Serial Number can also be used.

For network licenses, IP Address can also be used.

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 Ethernet adapter.

For Network Concurrent or Network Named User licenses, the MAC Address must be used as the Host ID.

For computers with a B: drive, MAC Address must be used as the Host ID.

To obtain the MAC Address, open Command Prompt and run the following command:

getmac

The MAC Address is the Physical Address listed for "Ethernet Adapter Local Area Connection".

To obtain the Volume Serial Number, open 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")

Mac OS X

For Mac OS X 10.8.1 and later, the Host ID is the MAC Address of the en1 device.

To obtain the MAC Address of the en0 device:

- Open Finder

- Open the "Applications" folder

- Open the "Utilities" folder

- Start the "Terminal" application

- In the Terminal window, enter the following command:

ifconfig en1 | grep ether

The MAC Address is the value listed next to "ether".

For Mac OS X 10.7 and earlier, the Host ID is the MAC Address of the en0 device.

To obtain the MAC Address of the en0 device:

- 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".

Solaris

The Host ID is the CPU hostid.

To obtain the CPU hostid, open Terminal and run the following command:

hostid

Linux

The Host ID is the MAC Address of the eth0 device (first Ethernet adapter).

To obtain the MAC Address, open Terminal and run the following command:

/sbin/ifconfig eth0

The MAC Address is the value listed next to "HWaddr".

For instructions on how to transfer a license from one computer to another, please see:

How do I transfer a license to a new server machine or host?

http://www.mathworks.com/matlabcentral/answers/96878

For instructions on how to transfer a Student Version license from one computer to another, please see:

How do I transfer a Student license to a new computer?

http://www.mathworks.com/matlabcentral/answers/142388

  4 Comments

Stephen Morris
on 11 Feb 2015

In Yosemite, the value of en1 or en0 is available under system preferences --> Network --> ethernet --> Advanced --> hardware. It is the same as the MAC address. There are 2 problems: many big mac pro machines have TWO ethernet ports. So you have to choose the right one. Laptops have NO hardware port, but the WiFi does have a MAC address, which would appear to be the thing you should use.

Shawn Lyons
on 31 Mar 2015

@Stephen Morris,

MATLAB will try to use the lowest listed en# device, so on the Mac pro, use en0. There is a known bug on some Mac pro systems where the operating system will re-label the network adapters when the system is rebooted. If you experience a license manager error -9 after rebooting your Mac pro, please contact MathWorks support for a workaround.

For the laptop, it will use wlan devices if no en# device is present.

-Shawn MathWorks Support

Alexander List on 18 Aug 2015

Now, I have an interesting question for you.

Imagine someone has a MacBookPro or any other recent laptop with Linux- they come without wired Ethernet devices, just WiFi.

How do you suggest someone activates MATLAB on such a device, where there is no eth0, or any other wired Ethernet?


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

  0 Comments


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!