

To edit the file, you’ll add your own lines after broadcasthost.

It also contains default IP values for localhost and broadcasthost. For each line, any text after the pound sign is ignored by the computer, making it a good way to add notes and descriptions to your files. It contains a number of lines of descriptive text which are “commented out” with the pound or number (also called a pound or hashtag) sign (#).Īny line that starts with a # sign is a comment and is not read by the /etc/hosts file. Click and drag it out of the Finder window and drop it on your desktop.īy default, the /etc/hosts file is relatively simple. A new Finder window will open and your Mac’s hosts file will be selected.In the box, enter “ /private/etc/hosts” into the box and press Return.Then, select Go to Folder from the menu.To find the hosts file, open the Finder, which you can access by clicking on the desktop, the smiley face finder in the lower left of your screen, or by pressing Cmd + Spacebar + Finder.
