is a string that gives the assigned name of the computer on which the Wolfram System is being run, if such a name is defined.


$MachineName
is a string that gives the assigned name of the computer on which the Wolfram System is being run, if such a name is defined.
Details

- For many classes of computers, $MachineName is the network host name.
- $MachineName is "" if no name is defined.
- $MachineName typically does not include the network domain name given by $MachineDomains.
Examples
Basic Examples (1)
Tech Notes
Related Guides
History
Introduced in 1991 (2.0)
Text
Wolfram Research (1991), $MachineName, Wolfram Language function, https://reference.wolfram.com/language/ref/$MachineName.html.
CMS
Wolfram Language. 1991. "$MachineName." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$MachineName.html.
APA
Wolfram Language. (1991). $MachineName. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$MachineName.html
BibTeX
@misc{reference.wolfram_2025_$machinename, author="Wolfram Research", title="{$MachineName}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/$MachineName.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_$machinename, organization={Wolfram Research}, title={$MachineName}, year={1991}, url={https://reference.wolfram.com/language/ref/$MachineName.html}, note=[Accessed: 08-August-2025]}