Generally on Windows this likely means Local is being restricted. You might need to make sure you are an admin user and Local has access to update the hosts file. This would be a good place to start:
If that still doesn’t work do you have any antivirus, security, or firewall applications that could be blocking Local?