0

Problem:

I've got two macs in the same network. One of them is often not discoverable via the Finder or Apple Music (shared library). I noticed that this mac has incorrect hostnames in the sharing preferences. When I change the hostname in the text field to bestHostname, the blacked out parts won't change. Instead they show something like phils-imac.domain.

The other mac is always discoverable and sharing preferences show up the correct hostname.

What I tried:

When I type sudo hostnameinto the terminal, the correct hostname appears (the purpled out one). I even tried sudo scutil --set HostName bestHostname to set the hostname via terminal, but system preferences still does not change it.

I even restarted the mac. Nothing helped.

enter image description here

Any ideas on how to fix this?

  • Specifically, see this answer: https://apple.stackexchange.com/a/303411/119271 – Allan Jul 22 '20 at 16:05
  • @Allen, this led me to the solution: https://apple.stackexchange.com/a/323696/215688 (same question as you mentioned, but different answer). – WalterBeiter Jul 24 '20 at 21:00
  • 1
    If you use that answer, check your router as you may have a static IP mapping with an assigned hostname - or it may be caching the old host in DHCP. Flush it out and it will get the new name from the hostname value on your Mac. – Allan Jul 24 '20 at 22:09

0 Answers0