Question: how to change macbook pro hostname?
Answer: On your Mac, choose Apple menu > System Preferences, then click Sharing. Open Sharing preferences for me.
Click Edit, then enter a new local hostname.