How to find the hostname of your Mac computer.

Question

How do I find the hostname of my Mac computer?

Answer

Method 1: Using Terminal

The command will display your computer's hostname in the output. 

  1. Open Terminal (you can find it in Applications > Utilities, or by searching with Spotlight).
  2. Type hostname and press the Enter key.

Method 2: Using System Settings

For macOS Ventura or newer:

  1. Click the Apple menu > System Settings
  2. Click Generalin the sidebar. 
  3. Click About
  4. Your computer's full name is listed next to "Name". 
  5. To find the local hostname, click General in the sidebar, then Sharing. The local hostname is listed at the bottom of the window. 

For macOS Monterey or older:

  1. Click the Apple menu > System Preferences
  2. Click Sharing 
  3. Your computer's name will be displayed at the top of the window. The local hostname is also listed in this window. 
Was this helpful?
0 reviews