# Local Could not update hosts file

**URL:** https://community.localwp.com/t/local-could-not-update-hosts-file/20634
**Category:** Support
**Tags:** windows-10, windows, hosts-file
**Created:** [July 3, 2020, 4:21pm UTC](https://community.localwp.com/t/local-could-not-update-hosts-file/20634 "2020-07-03T16:21:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gb\_factory](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/gb_factory/32/10870_2.png) [@gb\_factory](https://community.localwp.com/u/gb_factory)
#### Post date: [July 3, 2020, 4:21pm UTC](https://community.localwp.com/t/local-could-not-update-hosts-file/20634/1 "2020-07-03T16:21:55Z")

</div>

Local can’t update my hots file, every time I try I get this error message:  
[![](https://i.imgur.com/rgDAeYI.png) ](https://i.imgur.com/rgDAeYI.png)

I already tried to turn UAC on as suggested here: [Permissions Issues with etc/hosts](https://localwp.com/community/t/permissions-issues-with-etc-hosts/19447/3)

I also checked that I don’t have any program assosiated to the .bat extension as that was causing problems here: [Missing Hosts Entry. User did not grant permission. Windows 10](https://localwp.com/community/t/missing-hosts-entry-user-did-not-grant-permission-windows-10/19436/4)

I don’t have any antivirus other than Windows Defender, but even if I turn that off the error is still there.

Even running the app as administrator didn’t fix the issue.

I already checked the permissions on the hosts file, the checkbox on “Only read” is not ticked.

This is my log file: [https://pastebin.com/QDTKQkeU](https://pastebin.com/QDTKQkeU)

My desktop pc where Local is not working properly: Windows 10 Pro 18362.900  
My laptop where Local is working fine has Windows 10 Home 18362.863

I think I checked EVERY topic on this community talking about this issue but I haven’t found the solution yet.

---

<div class="post-metadata">

### Author: ![gb\_factory](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/gb_factory/32/10870_2.png) [@gb\_factory](https://community.localwp.com/u/gb_factory)
#### Post date: [July 4, 2020, 1:12pm UTC](https://community.localwp.com/t/local-could-not-update-hosts-file/20634/2 "2020-07-04T13:12:18Z")

</div>

Hello… stil no replies, someone know how to solve this issue? @clay

---

<div class="post-metadata">

### Author: ![pmmueller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/pmmueller/32/11060_2.png) [@pmmueller](https://community.localwp.com/u/pmmueller)
#### Post date: [July 31, 2020, 1:19pm UTC](https://community.localwp.com/t/local-could-not-update-hosts-file/20634/3 "2020-07-31T13:19:25Z")

</div>

It probably won’t help you much, but I just wanted to let you know that I had the very same error message when importing a Local site on a Windows 10 32Bit virtual machine (Parallels). Despite allowing execute.bat to make changes.

So I google and found your message here. As you described several ways that did not help, I just deleted the site and tried again.

Again I allowed execute.bat to make changes. This time it worked. The message “Changing site domain …” stayed on the screen for quite a while and I was expecting it to fail again, but it didn’t.

---

<div class="post-metadata">

### Author: ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)
#### Post date: [October 29, 2020, 9:43pm UTC](https://community.localwp.com/t/local-could-not-update-hosts-file/20634/5 "2020-10-29T21:43:22Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
