Modifying the hosts file under Windows will encounter two problems:
- hosts file not found
- The hosts file cannot be modified
The hosts file can be found by:
dir /b/s %windir% | findstr etc\hosts
You can modify and save the hosts file in the following ways
- Open cmd with administrator privileges
- echo 192.168.1.101 hosts >> %windir%\...\host