Last updated: November 25, 2026 · By Jérémie Aouate
Your Mac's local hostname is at the bottom of System Settings ›
General › Sharing, and ends in .local, for example
Johns-Mac-mini.local. Its IP address is in System Settings
› Wi‑Fi › Details, under TCP/IP. In Terminal,
scutil --get LocalHostName and
ipconfig getifaddr en0 print them. From an iPad or iPhone
at home, type either one; away from home, use the Mac's Tailscale
address.
| Name | Example | Where to see it | What it is for |
|---|---|---|---|
| Computer name | John's Mac mini | System Settings › General › About › Name | The name people see for the Mac on the network |
| Local hostname | Johns-Mac-mini.local | System Settings › General › Sharing, at the bottom | The address other devices on your network use to reach the Mac |
| Hostname | Johns-Mac-mini.local | Terminal: hostname | The name Terminal and network tools report |
Apple's rule: the local hostname is the computer name with spaces
replaced by hyphens and .local added. If another Mac on your network already has the name, macOS
adds a number; if the name doesn't suit Bonjour, the Mac falls back to
Macintosh.local.
192.168.1.20.
With Screen Sharing turned on, its options also show the IP address
after vnc://, for example vnc://192.168.1.20/.
Open Terminal (Applications › Utilities) and type these commands. They only read; they change nothing.
scutil --get LocalHostName prints the local hostname
without .local: Johns-Mac-mini.scutil --get ComputerName prints the computer name,
spaces included: John's Mac mini.hostname prints Johns-Mac-mini.local on a
Mac where nobody set another hostname; scutil --get
HostName then answers HostName: not set. If
hostname shows something else, use the local hostname
from Sharing to connect.ipconfig getifaddr en0 prints the IP address of
en0, for example 192.168.1.20, and prints
nothing if that connection has no address. en0 is often
the Wi‑Fi; networksetup -listallhardwareports shows which
device (en0, en1…) is Wi‑Fi and which is
Ethernet.
On the same Wi‑Fi, DualMac usually finds the Mac by itself. If it doesn't, tap + in the library (or Add by address when it is empty) and type one of these:
johns-mac-mini.local, or the IP address,
192.168.1.20. The .local name goes through
the same local discovery as the library: if the Mac doesn't show up by
itself, the IP address is the safer choice. Capitals don't matter when
you type the name: hostnames aren't case sensitive. An IP address can
change when the router hands out a new one; the .local name
follows the Mac.100.101.102.103, shown in the Tailscale menu on the Mac,
or its MagicDNS name, ending in .ts.net. Both work; see
Use your Mac over Tailscale. Never
open the Mac's Screen Sharing port on your router.To skip typing on the device, make a link or QR code with Add a Mac to DualMac. If the address is right and the Mac still doesn't answer, go to DualMac can't find my Mac. The whole setup is in Control your Mac from an iPad.
.local name.The MAC address is the hardware address of the Mac's network adapter, used for Wake-on-LAN, while the IP address is the one your network gives the Mac and the one you type to connect.
System Settings › Wi‑Fi › Details… › TCP/IP, or type
ipconfig getifaddr en0 in Terminal. At home it is
usually a private address such as 192.168.1.20.
The name devices on your network use to reach it, ending in
.local. It is at the bottom of System Settings ›
General › Sharing.
The computer name is for people and may have spaces. The local
hostname is its network form, with hyphens and .local.
The hostname is what Terminal reports, usually the local
hostname.
In System Settings › General › About, edit the name. The local hostname is edited in General › Sharing, with Edit.
You can show it yourself: in System Settings › Lock Screen, turn on Show message when locked and type the Mac's name as the message that appears on the lock screen.
No. The MAC address belongs to the network hardware; the IP address is the one the network gives the Mac, and the one you connect to.
Either. The 100.x address and the name ending in
.ts.net both reach the Mac on your tailnet.
scutil, hostname, ipconfig
and networksetup, read on macOS 27.2.1. Checked on
November 25, 2026.