9

Every day I come into the office and plug my mac into my Thunderbolt display. It says the name "yourcomputer" is in use and renames it "yourcomputer-2" (or -3 or -4 ...). How do I make it stop?

Cajunluke
  • 17,704

1 Answers1

1

Try making your hostname permanent by typing this command into the Terminal:

sudo scutil --set HostName yourcomputer

My hostname kept changing when I connected to the network because the router was broadcasting a different hostname, and this fixed it.

  • In my case is "ComputerName" that keeps changing. This does nothing more than setting it from system preferences. A few seconds later it will return to "computername (n)". This is the log of what happens exactly after it changes. – Rnhmjoj Sep 30 '14 at 14:28