Own two Mac and want to give them different names in the local network? When you want to share files between different computers in the same network, you should avoid duplicate computer name. To change Mac computer name is extremely easy.
Click Apple icon, choose System Preferences. Go to Sharing, and edit the computer name of your Mac from there.