What is the name of my computer?

A computer usually has a device name and a hostname that is used to identify itself on a network. Ideally, these names should match in order to minimize confusion and other surprises.

Finding the computer name

The quickest way to find a computer's hostname is to ask it directly. Simply open a terminal (for macOS and linux) or command prompt / powershell (Windows) and issue the command below:

hostname
Add comment

You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links. Comments are moderated.