- change both the computer's local host name and sharing name by: ( via here )
On your Mac, choose Apple menu > System Preferences, then click Sharing.
Click Edit, then enter a new local hostname.
- if step 1 doesn't work, use the command line: (via here [http://osxdaily.com/2012/10/24/set-the-hostname-computer-name-and-bonjour-name-separately-in-os-x/])
sudo scutil --set ComputerName "yourname"
sudo scutil --set HostName "yourname"
sudo scutil --set LocalHostName "yourname"