Shared name of Mac keeps changing

This infuriating little bug has been around since at least 2007, but gets "solved" every few years and then reappears with the next release of OS X.


I'm posting because it's especially bad with "Yosemite" (10.10), none of the previous fixes one can find on the web work, and it's just bloody ridiculous in this day and age that Apple of all people has such a persistent networking bug in the middle of their prize "bonjour" protocol. It's awful, annoying, infuriating and someone should actually do something about it, no?


The bug is that the Sharing name of a computer on a local network will constantly change by reason of bracketed numbers being added to the end of the name. If your computer name is "George" for instance, it will change to "George (2)", "George (3)", and so on. Mine has gone up to "(6)" a few times recently. All these computers, which are actually the same computer, will then show up as separate entities in the bonjour sharing dialogue. Clearly there is a sort of infinite loop thing going on where the computer looks at the network, sees itself, and thinks that this is actually a second computer of the same name. It's a childish, annoying little bug that Apple seems to not give a rat's behind about. It's been around for over 7 years!


Various online discussions (some here) can be found wherein various things can be tried, some of which on some OS's stop the behaviour for a while, but NONE of which actually work on Yosemite.


The most direct method to "fix" it is to reset the mDNSResponder.plist with some scary terminal code, but this fails on Yosemite because the file in question doesn't exist anymore.


The only thing I have found that slows it down, is to turn off all sharing, and turn off wireless on my computer. Needless to say this is NOT A SOLUTION. It's ridiculous to expect users to essentially turn off bonjour, to fix a bug within bonjour. Even so, the bug will reappear at times even with all sharing services turned off and wireless turned off.


Please, someone find a way to fix this nightmare. Apple has had seven years and apparently can't manage it.

Posted on Oct 24, 2014 12:32 PM

Reply
66 replies

Nov 12, 2014 4:04 AM in response to dbengston

As further side-effect I also just got notified by TimeMachine that the old backup isn't reliable anymore and need to start from scratch.

Another problem to solve now.. ;-(


I am certainly no expert on networking matters but I wonder why it is so difficult to locate the source of this “ghost name“ and eradicate it.

I would assume there is a “domain name server“ nested somewhere in the network that replicates the Computername and not in the computer itself although the issue really appeared evident with the upgrade hence it probably IS the computer declaring itself one instance more than requested updating the network name if it finds it's already been taken. Just speculating..


interesting enough, if I open a terminal window, the computername remains correct at the shell cursor; I always get something like: Computername:~ user$ which is correct.

Time to fill in a bug report I guess

Nov 12, 2014 4:19 AM in response to Gran Maestro

Gran Maestro wrote:


Installed Onyx, deleted cache, re-started and renamed computer but in no time i had “mycomputername (2)“ back. %!%°§!?!!

Unfortunately another check on our list that didn't help.

Who is next?.


Careful with the "who is next?" thing: computer problems are not solved by leaps and bounds, but by slow, painstaking baby-steps.


So now the question is this: what device on your network (real of computationally imagined) is taking the "mycomputername" name and forcing the addition of the index?


run this command in terminal: netstat | grep mycomputername

Nov 12, 2014 7:37 AM in response to Gran Maestro

We can change our computer names all day either with shell scripts, terminal typing or in the Sharing prefs. But... somewhere out there on our network, there's an Apple TV or a Time Capsule that's caching the names. The root problem lies with Apples network devices and something called Bonjour Sleep Proxy.


I have a Time Capsule, an AirPort Extreme, two AirPort Express cubes and an Apple TV on my network. Which of these is the culprit? Or is it all of them?


I don't know if it's a cause or symptom, but when my computer name gets changed, my computer has trouble "finding" my Time Capsule. Multiply this times the four laptops on my network, and we're skipping a heck of a lot of backups. Kinda defeats the purpose of Time Machine and Time Capsule to have it routinely fail because of Bonjour Sleep Proxy caching.


Next up on my kill list is to eliminate Back to My Mac from all my devices. It uses Sleep Proxy to wake stuff up if I connect remotely. I'm switching to TeamViewer anyway.

Nov 12, 2014 8:15 AM in response to dbengston

dbengston wrote:


We can change our computer names all day either with shell scripts, terminal typing or in the Sharing prefs. But... somewhere out there on our network, there's an Apple TV or a Time Capsule that's caching the names. The root problem lies with Apples network devices and something called Bonjour Sleep Proxy.


I have a Time Capsule, an AirPort Extreme, two AirPort Express cubes and an Apple TV on my network. Which of these is the culprit? Or is it all of them?


I don't know if it's a cause or symptom, but when my computer name gets changed, my computer has trouble "finding" my Time Capsule.


This is quite interesting. I have a similar setup at home with a Apple-TV ,one TimeCapsule and one AirportExpress and indeed, changing computer name made my TimeCapsule hard to reach by my computer.

I tried first a logout and login but had to restart the computer in order to get normal access to the TimeCapsule again.

Mysteries of OS X..


In all this troubleshooting, it looks like I also found a temporary fix for my issues; instead of constantly renaming the computer I tried to slightly change it's name.

Instead of re-naming it back to “Computername“ I tried “Computernamo“ (just to give an idea). That worked just fine, for the last couple of hours at least.

I noticed however, that all this re-naming doesn't affect the real “hostname“ of my computer as starting a shell window keeps showing the original “Computername“. How comes?

User uploaded file


This makes me wonder if that is where the real problem lies, we try changing a name that actually doesn't change.

Is anybody willing to enlighten me with the necessary background theory?


Thanks for sharing the knowledge


/P

Nov 12, 2014 10:20 AM in response to Gran Maestro

well, try just entering netstat. The grep pipe was there to eliminate the gobs of text that netstat returns and just find devices with your particular computer name, but if it's not working you'll have to look through the list by eye and see how many you can find.


Looking at some of the other posts here, though, I'm beginning to suspect that other devices (like an airport base station or a time capsule device) have the same bonjour name as your computer. Have you tried opening the Airport Utility and giving those devices different names, to see if it changes anything? You may have to look elsewhere for non-wireless devices, but every non-passive device will have it's own name and some mechanism for altering it.

Nov 12, 2014 10:45 AM in response to twtwtw

Hello twtwtw,


Nothing personal but I find that NONE of your suggestions are very helpful at all, in fact they are quite detrimental.


What IS helpful is some kind of insight into the problem. Your posts on the other hand are more along the lines of "well, maybe it's this," or "try this and see what happens." It's just NOT HELPFUL to both throw out what are essentially random guesses, as well as use language that implies that you expect people experiencing the problem to actually just blindly trust your hunches and try them out to see what happens.


The capper is your last post, (above) which makes no sense at all.


It directly implies that all of us suffering from the problem must be idiots. This is because you suggest the very first, most obvious thing that anyone would suspect is the cause of the problem (another device with the same name). Clearly this is not the issue. Clearly people have been saying this from the start. Clearly a moments searching will turn up the fact that this issue has happened with previous Apple OS's in 2007 and 2010. This suggestion of your's that it's a simple problem of two devices on the network with the same name is really on the same level as, "Did you try turning it of and then turning it on again?"

NOT HELPFUL at all.


This problem is almost certainly a recurrence of a problem with the code of Apple's bonjour protocol. It's happened before, it was squashed by updates before, and now it's happening again with Yosemite.

Nov 12, 2014 11:34 AM in response to mr_bee

mr_bee,


I have been helping people with computer problems for a long, long time, and most of the time people are too intelligent, not idiots. People tend to jump three steps ahead and think in the big picture, and they run into problems because they jump past some seemingly trivial point that has a non-trivial impact. Stepping back, slowing down, and going over old ground may be frustrating, and may not help in all cases, but it doesn't hurt beyond that and is sometimes the only way to solve otherwise intractable problems.


If you don't want to do it, that's fine, but don't jump on my case for suggesting you do what I would do to solve the problem for myself.


I don't doubt this is an issue with Apple's bonjour protocol, but it is clearly a vagrant issue relating to certain specific configurations. If it were a general problem that had a negative impact on large ranges of users it would have floated to the top of Apple's bug-fix list long ago. If you want a solution, you are going to have to determine (as best you can) precisely what configuration is causing your problem: you'll need to do that anyway if you want to file a useful bug with Apple, and you'll need to do that anyway if you want to find a solution on your own, so either way you'll need to do that. And if you want to figure out what configurations cause this problem, you need to poke around with various unix utilities and applications to see if you can see where the conflict is occurring.


My advice to you is to stop being so intelligent; to stop assuming that you know what the problem isn't until you have a more solid idea about what the problem actually is.

Nov 12, 2014 11:58 AM in response to twtwtw

Well, again, no offence, but the only response I have to that is to throw your condemnation right back at you (in regards people being too smart for their own good).


I repeat, random guesses (my interpretation of what you are actually doing) are NOT helpful. Asking folks to "try things" that are potentially invasive and/or destructive based on nothing but hunches is also NOT helpful.


I do appreciate that you believe you are trying to help.

Nov 12, 2014 12:17 PM in response to mr_bee

OK so after it not happening for a day or so, one of my devices switched names this AM. Looking in the console log I got


11/12/14 11:38:30.000kernel[0]en0 duplicate IP address 10.0.1.7 sent from address 00:24:36:9d:9f:7c
11/12/14 11:38:30.936configd[25]DHCP en0: defending IP 10.0.1.7 against BonjourSleepProxy 00:24:36:9d:9f:7c 1 (of 5)
11/12/14 11:38:33.353discoveryd[49]Basic DeviceInformation Changing host name from Pandora to Pandora-2
11/12/14 11:38:33.363discoveryd[49]None ClientIPC DNSServiceRemoveRecord: registrationId is 0 Client[kdc(399)]
11/12/14 11:38:33.752discoveryd[49]Basic Bonjour Changing computer name from Pandora to Pandora (2)


at the time it switched.


Would be interesting to see if the rest f you have the same thing. Not sure what this tells up but its the first bit of solid data I've seen on this.


regards


<edit>

the MAC address (00:24:36:9d:9f:7c) in the message

11/12/14 11:38:30.000kernel[0]en0 duplicate IP address 10.0.1.7 sent from address 00:24:36:9d:9f:7c

is my Airport Extreme


Anyone else?

Nov 12, 2014 12:10 PM in response to mr_bee

mr_bee wrote:


I repeat, random guesses (my interpretation of what you are actually doing) are NOT helpful. Asking folks to "try things" that are potentially invasive and/or destructive based on nothing but hunches is also NOT helpful.


I do appreciate that you believe you are trying to help.


LOL - Well, if you think I 'randomly guessed' that netstat might have some useful information, or that changing the bonjour name of a device might have some horribly deleterious side effect, I don't suppose I can convince you otherwise (even though netstat is a passive utility and you yourself have changed the name of your computer without it exploding). So good luck, and I hope someone shows up with that magic bullet you seem to think is needed to slay this demonic annoyance. 😝

Nov 12, 2014 1:14 PM in response to twtwtw

Okay, so now you are resorting to being a bully.


Can't you simply understand that I find your attempts at help are not helpful and just leave it at that? The whole point of these communities and lists is for people to post problems, for other people to attempt to help them, and then for those that have problems to "rate" the helpfulness of those attempts. That's all I'm doing here.


Meanwhile, you seem to take my low opinion of your efforts personally (despite many attempts by me to state that it isn't personal at all), you denigrate me, and you assume all sorts of emotional nonsense that you then inject into what you seem to think is a "debate" of some kind.


So how about this? You win! Yay! You are a big big man and you have such knowledge and intelligence it simply astounds me. In fact you have helped so much, that you should probably just leave. Your work is done.


I am not interested in debating you, or how great your credentials are, and I shall ignore all your future posts to this and any other problem I post. Please be a decent fellow and just leave.


I doubt you will be able to resist some overly personal parting shot at me, so guess what? I will let you know right now that this is totally fine. You are clearly the smart one. The strong one. You don't have to worry about me getting the last word. The last word is totally yours, feel free to make fun of me in any way you like, but after that ...


... please leave. OK?

Nov 12, 2014 1:17 PM in response to Frank Caggiano

00:24:36:9d:9f:7c is the MAC address of a device on your network; can you determine which device it is? If I'm reading this correctly, some device woke up and tried to claim the local network address 10.0.1.7 (possibly because that was its last assigned address?) and that produced an address conflict because that address had assigned (or reassigned) to something else. If we can discount that 3 second delay, that could be the original source of the name change.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Shared name of Mac keeps changing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.