Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Do you have the Mac hooked up to Ethernet through the Thunderbolt display? – CajunLuke Jun 28 '12 at 17:48
Yes, it's ethernet through thunderbolt. – chrismealy Jun 28 '12 at 21:18
is the name "yourcomputer" unique on your work's network? i.e. are there other people with Mac's that might have the same computer name or are you also connecting via a second network such as wi-fi? – Stu Wilson Jul 7 '12 at 20:54
another possibility, do you plug into the same display every day or do you hot desk between multiple available Thunderbolt displays? – Stu Wilson Jul 7 '12 at 21:15
nope, one laptop, one display, one unique name on the network – chrismealy Jul 9 '12 at 23:34

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.

share|improve this answer
Thanks. I'll give that a try. – chrismealy Jul 30 '12 at 21:58
If it works, would you mark the answer as accepted? Thanks! – Ricardo Sánchez-Sáez Aug 7 '12 at 21:08
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.