You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Computer name keeps getting (2) appended to it.

I've searched high and low and can't seem to figure out why my iMac thinks the computer name is already being used on the network.


I can see in the sharing preference pane that the original name is what is indicated with this copy:

Computers on your local network can access your computer at: XXXXX.local


However, the name in the field above it has XXXXX (2) and each time I try to get rid of the (2) I get the message:


The name of your computer “XXXXX” is already in use on this network. The name has been changed to “XXXXX (2)


I can change the name using the EDIT button to anything else I want, and it doesn't add the (2). But once I change it back to my desired computer name, I get the same message that it's already being used.


I've tried turning off all of my sharing services but that still doesn't seem to allow the name to be used.


Any idea what other process is running that can be using the name? How do I figure out where the conflict is occurring?

iMac, Mac OS X (10.7.3)

Posted on May 6, 2012 9:43 AM

Reply
Question marked as Top-ranking reply

Posted on May 6, 2012 10:40 AM

Thanks for the reply Soren, however, there aren't any other computers on my network with that name. It's the same computer, which I can verify since it displays the actual name under the Sharing settings as XXXXX.local not XXXXX-2.local

77 replies

May 6, 2012 11:00 AM in response to Soren Pearson

Hi Soren, the procedure outlined in the link is what I have been doing. I am able to change the name to something else, which also changes the .local name, but whenever I try to change it back to my desired computer name, it changes the .local name properly, but gives me the message that the name exists and appends (2) to the computer name field. The .local name is still set properly, without "-2" appended.


Sorry if that sounds confusing.

May 6, 2012 12:39 PM in response to Alberto Ravasio

Thanks for the suggestion, Alberto. I turned all networking off and was able to make the change successfully. However, once I turned networking back on again, the same message popped up:

The name of your computer “XXXXX” is already in use on this network. The name has been changed to “XXXXX (2)


In the Sharing Preference Pane, I verified that it appears to still be using the correct .local name:

Computers on your local network can access your computer at: XXXXX.local


But the Computer Name in the field above the message switched to XXXXX (2) again.

May 6, 2012 2:16 PM in response to Ken Loh

From Terminal issue


ping -c3 XXXXX.local


you'll get something like this


ping -c3 XXXXX.local

PING XXXXX.local (192.168.1.x): 56 data bytes

64 bytes from 192.168.1.x: icmp_seq=0 ttl=64 time=0.042 ms

64 bytes from 192.168.1.x: icmp_seq=1 ttl=64 time=0.073 ms

64 bytes from 192.168.1.x: icmp_seq=2 ttl=64 time=0.071 ms


The computer with IP (192.168.1.x) has the name XXXXX.local. Is that the IP of your iMac?

May 6, 2012 2:36 PM in response to Alberto Ravasio

After the ping command, the results indicated the IP address that my WIFI is using for that computer.


I had turned WIFI on previously since I was planning on logging on to the computer using WIFI devices, but I realize this is not necessary so I just turned it off to see if that was causing some of the problems.


Once turned off, I tried the ping command again, and now it is indicating the IP address that Ethernet is using for the computer. However, I still cannot change the Computer Name with WIFI turned off. Same results.

May 6, 2012 2:54 PM in response to Ken Loh

Ken Loh wrote:


After the ping command, the results indicated the IP address that my WIFI is using for that computer.


I had turned WIFI on previously since I was planning on logging on to the computer using WIFI devices, but I realize this is not necessary so I just turned it off to see if that was causing some of the problems.


Once turned off, I tried the ping command again, and now it is indicating the IP address that Ethernet is using for the computer. However, I still cannot change the Computer Name with WIFI turned off. Same results.

It looks like you have 2 network instances, hence 2 names. Unplug one or the other connection for a while (like the rest of today) eventually one instance will fade away.

May 6, 2012 7:14 PM in response to Ken Loh

The thing is...when I pinged for the XXXXX.local hostname, it specified that it was an unknown host, which I figured it meant I would be able to change it, but after trying, I got the same error message that it already existed. So I pinged again, and it displayed the same IP number that Ethernet is connected to.

May 14, 2012 5:49 AM in response to Ken Loh

Had the same issue popping up today. Have a MacPro and MacBook Pro using the same Airport network. Issue popped up only on the MacPro. Resetting the name was no use. Changed the name completely, but after wake from sleep this also showed as name (2). After some experimenting, and considering that the 'Bonjour Sleep Proxy service' running on the Airport Extreme basestation maybe would register the computer names and could so be the cause, I disabled 'Wake for network access' in the Energy Saver preference panel.

After changing the computer name again, putting to sleep and wake again, the new name was kept; so it appears this solved the issue.

So I suppose the problem is related to that service getting mixed up. Don't now how to get this working correct again (didn't find any solution for resetting this service).

Anyway, if you don't reuqire 'Back to my Mac' or 'Find my Mac' to work when your mac is asleep, this could help you out.

May 14, 2012 10:15 AM in response to Ken Loh

In my suggested set-up, just try another name and see if that works without getting the name (x); that worked for me. Didn't try with the old name, as I suppose 'Wake for network access' will in some way remember this and do the same annoying trick.

As already said previously, think this service gets mixed up and didn't find a solution for restting it.

See no issue to use a new name from now on.

Succes, Ken

May 27, 2012 12:35 PM in response to Alberto Ravasio

Chiming in here. I have same issue with computer name changing on me by the way. I use both ethernet and wifi because:

I use ethernet primarily because it is right there and is my primary method for access internet.


I had to use wifi because iphone/ipod wifi-syncing only works if you have wifi turned on in the machine. That is the only reason I have wifi turned on. Should I abandon ethernet? That's a shame because it is so fast.

Computer name keeps getting (2) appended to it.

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