Sur windows :
- Open Notepad with administrator privileges.
- Browse to C:\Windows\System32\drivers\etc\hosts (Or paste this into the address bar)
- Open the file.
- Make your changes and save
Sur Mac :
- Launch Terminal
- Type sudo nano /etc/hosts and press Return
- Enter your admin password
- Use the Return key to create some space below the existing records
- Type in the TCP/IP address
- Press the Tab key
- Enter the domain name
- Save the file by pressing Ctrl + O
- Exit with Ctrl + X