How to Find the Name of Your Computer (Windows, Mac & More)

Every computer has a name — a label assigned during setup that identifies it on a network, in system settings, and across connected services. Whether you're trying to connect to a shared printer, configure remote access, or troubleshoot a tech support issue, knowing your computer's name is a surprisingly useful piece of information. Here's exactly where to find it, across every major platform.

What Is a Computer Name, Exactly?

Your computer name (sometimes called a hostname or device name) is a unique identifier assigned to your machine. It's separate from your username — the computer name identifies the device, while your username identifies you on that device.

During initial setup, Windows and macOS both assign a default name automatically. It often looks something like DESKTOP-AB12CD3 on Windows or Johns-MacBook-Pro on a Mac. You may have changed it at some point, or it may still be the factory default — either way, the name is stored in your system settings and easy to retrieve.

How to Find Your Computer Name on Windows 🖥️

Windows gives you several ways to find your device name, depending on which version you're running and how quickly you need the answer.

Method 1: Settings App (Windows 10 and 11)

  1. Open Settings (Windows key + I)
  2. Go to System
  3. Select About
  4. Look for Device name near the top of the page

This is the most straightforward method for modern Windows users.

Method 2: Control Panel

  1. Open Control Panel
  2. Navigate to System and Security → System
  3. Your computer name appears under the Computer name, domain, and workgroup settings section

Method 3: Command Prompt

If you prefer the command line, open Command Prompt (search for cmd in the Start menu) and type:

hostname 

Press Enter. Your computer name will appear on the next line — fast and no menus required.

Method 4: Run Dialog

Press Windows key + R, type sysdm.cpl, and hit Enter. The System Properties window opens directly to the Computer Name tab.

MethodBest For
Settings → AboutEveryday users on Windows 10/11
Control PanelOlder Windows versions
Command Prompt (hostname)Quick lookup, IT users
sysdm.cpl Run dialogViewing and changing the name

How to Find Your Computer Name on macOS 🍎

On a Mac, the computer name and the hostname are technically two related but slightly different values — though for most purposes they refer to the same thing.

Method 1: System Settings / System Preferences

On macOS Ventura and later:

  1. Click the Apple menuSystem Settings
  2. Select General
  3. Click About
  4. Your computer name appears at the top

On macOS Monterey and earlier:

  1. Apple menu → System Preferences
  2. Click Sharing
  3. Your Computer Name is displayed at the top of the Sharing pane

Method 2: Terminal

Open Terminal (found in Applications → Utilities) and type:

hostname 

This returns the local hostname, which may include .local appended to the end — that's normal and part of how macOS handles local network discovery.

How to Find a Computer Name on Linux

Linux systems vary by distribution, but the process is consistent in the terminal:

hostname 

Or for the fully qualified domain name:

hostname -f 

You can also check the contents of the hostname file directly:

cat /etc/hostname 

Graphical methods depend on your desktop environment. On GNOME (used in Ubuntu), go to Settings → About to find the Device Name.

Why Your Computer Name Matters

Most people go years without needing this information — and then suddenly need it urgently. Common scenarios where your computer name becomes important:

  • Network file sharing: Other devices on the same network can find yours by name rather than IP address
  • Remote desktop connections: Tools like Windows Remote Desktop require the target computer's name or IP
  • IT support: Help desk staff often ask for your device name to locate your machine in a management system
  • Syncing and cloud services: Some services register devices by name, which can matter when managing access

The Difference Between Computer Name, Username, and IP Address

These three identifiers get confused frequently, and they're not interchangeable:

  • Computer name / hostname: Identifies the physical or virtual machine
  • Username: Identifies who is logged in to that machine
  • IP address: A numerical address assigned by your network router — it can change, especially on home networks using DHCP

Your computer name stays constant (unless you deliberately change it), while your IP address may shift whenever you reconnect to a network.

Factors That Affect Where to Look

The right method depends on a few variables:

  • Operating system and version: The Settings path on Windows 11 differs slightly from Windows 10; macOS Ventura reorganized System Preferences into System Settings
  • Whether you have admin access: Viewing the name requires no special permissions, but changing it typically does
  • Your comfort level with the command line: Terminal methods work across all versions and are often faster once you know them
  • Whether you're on a managed device: Work or school computers may have names set by an IT department that follow a specific naming convention you won't recognize

The name you find may be a clean label like Sarahs-Laptop or a cryptic default like DESKTOP-7GHK2PX — both are valid. What matters is knowing which device it refers to in your specific environment, and whether that name aligns with how your network or IT setup expects devices to be identified.