A hostname is a specific name assigned to a computer which can be used to easily identify it on a network.
- Click on the Apple icon.
- Click System Settings.
- Click General.
- Select Sharing from the list under General.
The Local Hostname will appear at the bottom of the Window.