0

Whenever I join a network where there are other Macs, I sometimes get the notification:

This computer's local hostname Macintosh.local is already in use on this network. The name has been changed to 'Macintosh-2.local`.

From then on the result of hostname is this changed name. I've tried:

  • System Preferences->Sharing->Computer Name.
  • sudo hostname jared-mac.
  • Modified /etc/hostname.
  • System Preferences->Network->Advanced... ->TCP/IP DHCP Client ID
  • System Preferences->Network->Advanced... ->WINS

Is this a known issue? Or am I doing something wrong?

4

2 Answers 2

4

Normally the two are in sync, but you can alter the hostname by going to:

System Preferences -> Sharing -> Under Computer Name on the right side is an Edit button. Click the Edit button and in the new sheet alter your hostname to match your computer name.

3
  • 1
    So when your hostname is "jared-mac" it is reverting to "Macintosh-#" - even if the hostname of the other Mac is not the same?
    – Chealion
    Jun 12, 2009 at 5:49
  • @Chealion, you are right. You have to press the Edit button which presents a dialog where a completely different value (Macintosh-#.local) is stored. Jun 12, 2009 at 17:52
  • @Jared - Sorry I should have made that more clear. Edited the answer.
    – Chealion
    Jun 12, 2009 at 18:31
0

System Preferences - Sharing - Computer Name

2
  • 2
    Did you try pressing the Edit... button underneath it? Occasionally the Computer Name and Hostname don't match requiring you to adjust it there as well.
    – Chealion
    Jun 11, 2009 at 23:57
  • @sweimann, you are almost there. The Edit button next to Computer Name is misleading--it's for editing the local name, not the Computer Name. Jun 12, 2009 at 17:52

You must log in to answer this question.

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