
It is most commonly a 12-digit alphanumeric string. The Host ID (or hostid) of a computer is the unique identifier used by the ENVI and IDL licensing software to tie a license to a particular computer. It is often a human-readable nickname that corresponds to the IP Address of the computer. The Host Name (or hostname) of a computer is a label assigned to the machine that is designed to distinguish it from other devices connected to a network. If ENVI or IDL is not yet installed on the computer, please scroll down to view some common methods for finding this information without the use of our software. This is the recommended method for obtaining the Host Name and Host ID information. If ENVI or IDL is already installed on the computer, our software can be used to obtain this information by following the instructions below. This help article discusses some common methods for obtaining this information from the computer.

When creating a new license file via the web licensing portal, users are asked to input the Host Name and Host ID of the computer being licensed. Changing your Mac’s hostname can make it easier to find your Mac on a network and to connect to.THIS INFORMATION ONLY PERTAINS TO SOFTWARE VERSIONS IDL 8.5, ENVI 5.3 AND PRIOR By default Mac OS X will usually assign the hostname as whatever the admin account username is. Thank you to commenter Jim for pointing this out! You can still use the hostname command but it will require the -s flag as discussed in the aforementioned instructions. This particular approach is temporary and will reset itself after your Mac reboots though, so if you want a permanent hostname change, use the above command instead. You can also set a temporary hostname change by using the following command: If you want to watch this done, the short video below walks through the steps by using scutil: Checking the Current Mac Hostname from the Command LineĪfter the above command is executed you can verify that the changes took place by typing:

With modern MacOS releases from Mac OS X Mavericks and newer, you can also use the hostname command with a flag to set the hostname to be permanently changed:Īgain, sudo requires admin privileges to complete the job.

Another Method for Setting the Mac Hostname You will be asked for your admin password since you’re using the sudo command. (Note the “–” before set is two dashes next to each other, –set) Simply replace new_hostname with whatever you want your hostname to be changed to, for example I want to change a Mac’s hostname to MacBookPro, I will use this command: To get started, launch the Terminal application in Mac OS and then use the following command syntax: How to Change Host Name on Mac from the Command Line This tutorial will show how to change your Mac hostname with the command line and make the setting change permanent (well, permanent until you change it again):
