Obtaining a HostID for licensing

Solution Number: 828
Title: Obtaining a HostID for licensing
Platform: All Platforms
Applies to: All Products
Versions: All versions
Categories: Installation
Keywords: FlexNet HostID host id

Problem Description

How do I obtain a HostID for my license file?


For many license types in the COMSOL product family, your COMSOL sales representative will ask you for some information in order to create installation codes. COMSOL uses the FlexNet Publisher licensing system to create installation codes using the HostID and server name and possibly more information about your system. The server name is the network name of the computer, which can be just a name, (e.g., bart), a fully qualified ip-name (bart.simpson.com) or an ip-number ( The HostID is the physical hardware number of the Ethernet Network Interface Card (NIC). The HostID is sometimes called Ethernet address or MAC-address (Media Access Control address).

Obtaining the HostID on Windows
Obtaining the HostiD on Mac OS X
Obtaining the HostID on Linux

Obtaining the HostID on Windows

  • First open the command window: Press keyboard shortcut Window button+R, (or, if you have no window button: Put the insertion point in the search field.). Type in cmd and press Return.
  • Type in ipconfig /all at the command prompt and press Return.
  • The FlexNet HostID is the same as the "Physical Address". This must be reported to your COMSOL representative in order to sign a license file.
  • The server name is the same as the "Host Name". The host name can also be reported to your COMSOL representative for easy handling, but it is not necessary to create the license file.

Click to enlarge
To place the number in the clipboard: Right-click the text and select Mark in the menu, mark with the mouse and press return. You can also type the command getmac /FO LIST /V | clip, where /FO contains the letter O as in Oscar. Then press CTRL+V to paste the output in an editor.

HostID for PCs with wireless adapters
If you plan to install on a PC with a wireless network adapter, you should report the physical address of both the wireless and the Ethernet adapter. If your sales representative asks you for the C: hard disk serial number instead of the HostID, type vol at the Windows command line prompt (see picture above). The output will look like
Volume Serial Number is 2C9F-5930. Note: this number must be taken from the C: partition. Please send this number to COMSOL.

Alternitives for hostid

It is possible, but not recommended to use the Host Name for signing of the license file.

Obtaining the HostID on Mac OS X

There are two ways to find the HostID on Mac OS X.

  1. Via the Network Utility application.

    • Launch the Network Utility application. In Mac OS X 10.9 and later it is available in the /System/Library/CoreServices/Applications folder, in older versions of Mac OS X it is found in the /Applications/Utilities folder.
    • Select the Info tab on the left.
    • Report the hardware address for both Network Interface (en0) and also Network Interface (en1) if it exists. These numbers should each consist of 12 characters. Do not select Network Interface (fw0).
    • The HostID is the Hardware Address, see below, with the colons removed.

    Click to enlarge

  2. Using System Preferences

    • Go to System Preferences and select Network.
    • Select the correct Ethernet adapter and click Advanced
    • Select the Hardware tab where you will find the MAC address listed.
    • Report the MAC address for both Ethernet 1 and also Ethernet 0 if it exists. These numbers should each consist of 12 characters. Do not select Firewire.

To find the server name, open the Terminal application found in the /Applications/Utilities folder.

  • Type in hostname. This is the current host name of the Mac. This may or may not correspond to the IP Address shown underneath the Hardware Address in the Network Utility, depending on where the Mac gets its IP address and hostname.

  • Optionally, the server name is equal to the IP Address that corresponds to the hostname found from the hostname command. Use the results of the hostname command and enter this host name into the network address to ping field under the Ping tab of the Network Utility. Press the Ping button, and you'll see the IP address in parentheses after the hostname you typed.

Click to enlarge

Obtaining the HostID on Linux

  • Open an xterm window.
  • Type in hostname at the command prompt and press Return. The output is the server name.
  • Type in /sbin/ifconfig eth0 at the command prompt and press Return. The HostID is the 12-digit number after "ether". For older Linux versions the 12-digit number will be listed after "HWaddr".

    For newer versions of Linux distributions, consistent network device naming has been deployed. This means that the Ethernet adapter can have a different name than eth0. Run the command without parameters, /sbin/ifconfig , to get all adapters on your machine. Select the one for the Ethernet card.


COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.