IP Addresses

What is a computer identification number?

There is no single standard computer identification number. The usual options are a MAC address, an IP address, a hostname, or a serial number.

On this page
  1. There is no single standard number
  2. The usual candidates
  3. Comparing the identifiers
  4. How to look up each one
  5. Which identifier to give someone

There is no single standard number

“Computer identification number” is not a standard networking term. It usually points to one of a few identifiers, so the right answer depends on what the number is for. A support person, an inventory list, and a router setting may each need a different one.

The usual candidates

  • MAC address: a hardware address set on the network adapter and usually written as six hexadecimal pairs. It is used on the local network.
  • IP address: a network address that is assigned by a DHCP server or set by hand. It can change when the device reconnects or moves to another network. For more on the MAC side, see “what is the unique identifier for a device on a network?”
  • Hostname: the name of the computer on the network, such as office-pc.
  • Machine ID: many Linux systems keep a 32-character hexadecimal ID in /etc/machine-id. System software uses it, and it is not used for routing.
  • Serial number: set by the manufacturer and usually printed on the device or shown in the firmware setup screen. It is used for warranty and asset tracking.
  • Windows product ID: an identifier for activating Windows. It is for software licensing, not for identifying the computer on a network.

Comparing the identifiers

Identifier Assigned by Used for Usually changes?
MAC address Manufacturer (can be changed in software) Delivery on the local network No, unless changed
IP address DHCP server or administrator Sending data across networks Yes, when reassigned
Hostname Whoever names the computer Naming on the network Yes, when renamed
Machine ID Operating system installation System software on Linux No
Serial number Manufacturer Warranty and asset records No

How to look up each one

On Windows, run ipconfig /all to see the MAC and IP addresses, and run hostname for the name. The serial number is usually on a label on the device or in the firmware settings.

On Linux, run ip addr show for the addresses and hostname for the name. The machine ID is in /etc/machine-id, which you can read with cat. On many systems, sudo dmidecode -s system-serial-number prints the serial number, but this command needs administrator rights.

If you are new to these commands, “what are 10 common network commands?” is a useful list to work through.

Which identifier to give someone

  • Network troubleshooting: the IP address, since that is what other devices use to reach the computer.
  • Router settings for a specific device: the MAC address, which the router’s device list usually shows.
  • Warranty or asset records: the serial number.

When the request is unclear, ask what the number is for before you send one.

The complete guide to ip addresses

What Is the Unique Identification Number of a Computer on a Network?
Read the guide

Keep exploring

Guides from other topics

All topics →