I opened Terminal on my MacBook Pro and the prompt reads:

MacBook-2:~ myName$

Is there something wrong? Do I need to be worried about this? Why -2?

1 Answer 1


This is because there can't be two devices on the network with the same name. MacBook becomes MacBook-1, then MacBook-2.

You can check this with:

scutil --get ComputerName

This could be because there are two other devices with the name MacBook, or because Bonjour hasn't forgotten that the device disconnected. It's nothing to worry about, and you can change the computer name from System Preferences → Sharing or use scutil to ask for a name change.

scutil --set ComputerName MacBook
  • 1
    You are quite optimistic about being able to change it back. Usually when the "stale" entry is there, you cannot rename it and will then get bumped to MacBook-3. I think there are several bugs that need fixing on Apple's end and a better handling of IPv4 and IPv6 dual network interface before we will get out of this renaming mess.
    – bmike
    Dec 14, 2015 at 19:22
  • @bmike For the few times I've had this happen, I've never had a problem changing it back! :) I guess it depends on how the network is configured and how devices on the network respect specification and such.
    – grg
    Dec 14, 2015 at 19:24
  • Apple networking hardware seems to really get stuck for me. Also I have seen loops where Apple TV and such are up to (325) after their names!
    – bmike
    Dec 14, 2015 at 19:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .