Edit Hostfile Windows/Mac
Windows – Edit Hostfile
To edit the host file on a Windows system, you can use the following steps:
- Open the Start menu and search for “Notepad”
- Right-click on Notepad and select “Run as administrator”
- In Notepad, go to File > Open and navigate to the folder C:\Windows\System32\drivers\etc
- Select “All Files” from the drop-down menu in the bottom right corner of the open dialog
- Open the “hosts” file
- Make your desired changes to the file, then save the file by going to File > Save
Mac/Linux
On a Mac or Linux system, you will need to use the Terminal to open and edit the host file.
- Open terminal
- Type “sudo nano /etc/hosts” and press enter
- Type in your admin password when prompted
- Make your desired changes to the file
- Save the file by pressing “CTRL+O”, then exit by pressing “CTRL+X”
Please note that editing the host file can cause connectivity issues if not done correctly, so it is important to be careful when making changes and to keep a backup copy of the original file.