# Hosts file issue

**URL:** <https://community.localwp.com/t/hosts-file-issue/32812>\
**Category:** Support\
**Tags:** hosts-file\
**Created:** [August 10, 2022, 1:28pm UTC](https://community.localwp.com/t/hosts-file-issue/32812 "2022-08-10T13:28:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MyLocal](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/mylocal/32/16303_2.png) [@MyLocal](https://community.localwp.com/u/MyLocal)\
**Post date:** [August 10, 2022, 1:28pm UTC](https://community.localwp.com/t/hosts-file-issue/32812/1 "2022-08-10T13:28:15Z")

</div>

Just got through installing Local and can get nothing done! I have a hosts file so what is the issue???

Getting the following error message:

Uh-oh! Could not update hosts file  
Local ran into a problem when trying to update the hosts file  
Please ensure that the hosts file is not locked by anti-virus

THANKS for any help - Ken

---

<div class="post-metadata">

**Author:** ![austinwendt](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/austinwendt/32/13912_2.png) [@austinwendt](https://community.localwp.com/u/austinwendt)\
**Post date:** [August 10, 2022, 4:47pm UTC](https://community.localwp.com/t/hosts-file-issue/32812/2 "2022-08-10T16:47:02Z")

</div>

Hi @MyLocal - thanks for using Local! I think I can help.

My assumption is something is blocking Local from writing to that hosts file. Are you on Windows or Mac? And do you have any antivirus or similar software that could be locking down that file?

Here is a related help doc (for Windows, issue is similar for Mac) around the hosts file not being accessible - [Help! I'm running into an EPERM error with the hosts file on Windows](http://community.localwp.com/t/help-im-running-into-an-eperm-error-with-the-hosts-file-on-windows/3508). Can you try taking the steps here?

---

<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:** [November 8, 2022, 4:47pm UTC](https://community.localwp.com/t/hosts-file-issue/32812/3 "2022-11-08T16:47:31Z")

</div>

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