Windows 10
Press the Start / Windows key.
Type Notepad' in the search field.
In the search results, right-click 'notepad' and select 'Run as administrator'.
From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
Make the necessary changes to the file
Select File > Save to save your changes.
macOS
Open Terminal
Type 'sudo nano /etc/hosts' and press 'Enter' to continue
Make the necessary changes to the file