# I have issue with the host file

**URL:** <https://community.localwp.com/t/i-have-issue-with-the-host-file/43212>\
**Category:** Support\
**Tags:** hosts-file, windows\
**Created:** [June 6, 2024, 2:56pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212 "2024-06-06T14:56:47Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![kikoeris](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kikoeris](https://community.localwp.com/u/kikoeris)\
**Post date:** [June 6, 2024, 2:56pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/1 "2024-06-06T14:56:47Z")

</div>

i have the same problem with the host file. it doesnt update and it show to me a the message error.  
i make the steps that some of you reccomend in other posts but still it doesnt work.  
what can i do??

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 6, 2024, 3:07pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/2 "2024-06-06T15:07:29Z")

</div>

Hi @kikoeris

What version of Windows are you on?

What is your Local version?

What steps have you tried so far?

---

<div class="post-metadata">

**Author:** ![kikoeris](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kikoeris](https://community.localwp.com/u/kikoeris)\
**Post date:** [June 6, 2024, 3:11pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/3 "2024-06-06T15:11:35Z")

</div>

i have the local version 9.0.3  
windows 10 pro  
and i try the steps which said to uncheck the read only in the host file properties

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 6, 2024, 3:13pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/4 "2024-06-06T15:13:18Z")

</div>

Do you have any other security or firewall applications?

Do you have any other developer applications?

Is this is a work issued machine?

Are you an admin user?

---

<div class="post-metadata">

**Author:** ![kikoeris](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kikoeris](https://community.localwp.com/u/kikoeris)\
**Post date:** [June 6, 2024, 3:19pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/5 "2024-06-06T15:19:09Z")

</div>

no i dont have other security or applications  
neither developer applications.  
yes i am admin user. it is my personal pc

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 6, 2024, 3:27pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/6 "2024-06-06T15:27:28Z")

</div>

Is this your first time using Local or was it working previously and stopped?

Have you done a full reboot since adjusting the Hosts File settings? If not go ahead and try that next.

---

<div class="post-metadata">

**Author:** ![kikoeris](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kikoeris](https://community.localwp.com/u/kikoeris)\
**Post date:** [June 6, 2024, 3:29pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/7 "2024-06-06T15:29:13Z")

</div>

yes it is first time. actually i start studies for wordpress and i cant continue them without fix it. ok i will do that and i will come back.thank you

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 6, 2024, 3:31pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/8 "2024-06-06T15:31:13Z")

</div>

If the reboot doesn’t work I would try doing a full uninstall with our steps here:

> **[Uninstall Local](https://localwp.com/help-docs/troubleshooting/uninstalling-local/)**
>
> We’re sorry to see you go! Follow the instructions below to remove Local. Table of Contents: There are three main parts to the Local app, and depending on what you are trying to do, you may want to…

Then reinstall the latest release from here making sure the Hosts File is still editable.

> **[Releases](https://localwp.com/releases/)**

---

<div class="post-metadata">

**Author:** ![kikoeris](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kikoeris](https://community.localwp.com/u/kikoeris)\
**Post date:** [June 6, 2024, 6:45pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/9 "2024-06-06T18:45:58Z")

</div>

the reboot doesnt work.i have unistall it and now i am download it again.i will be back to inform you later

---

<div class="post-metadata">

**Author:** ![kikoeris](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kikoeris](https://community.localwp.com/u/kikoeris)\
**Post date:** [June 6, 2024, 7:14pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/10 "2024-06-06T19:14:40Z")

</div>

still it doesnt work. now it doesnt show me the error message but when i click wp admin the site doesnt open

 ![Screenshot_1](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/6/e/6e0785b3e1df70f56e72eb5608449c09a494613c.jpeg)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 6, 2024, 9:06pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/11 "2024-06-06T21:06:52Z")

</div>

This error still indicates that Local might be having trouble updating the Hosts File. Can you verify this is still writeable for Local?

Can you try changing the Router Mode to Localhost and see if that works?

Preferences\>Advanced\>Router Mode

---

<div class="post-metadata">

**Author:** ![kikoeris](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kikoeris](https://community.localwp.com/u/kikoeris)\
**Post date:** [June 7, 2024, 1:20pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/12 "2024-06-07T13:20:46Z")

</div>

Yes it is writeable i check it. I also change the router mode but nothing works

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 7, 2024, 1:39pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/13 "2024-06-07T13:39:15Z")

</div>

To double check here, can you open a command prompt with administrator privileges and navigate to the directory containing the hosts file (probably `C:\Windows\System32\drivers\etc`). Once there run this command and see what the output is:

`attrib C:\Windows\System32\drivers\etc\hosts`

If it’s still showing “Read Only” then you can try running this:

`attrib -r C:\Windows\System32\drivers\etc\hosts`

Additionally, if User Account Control (UAC) is enabled, it might restrict write access to system files. You can temporarily lower the UAC settings by:

- Open the Control Panel.
- Go to “User Accounts” \> “Change User Account Control settings”.
- Lower the slider to a lower setting, such as “Never notify”.
- Restart your computer and try again

---

<div class="post-metadata">

**Author:** ![kikoeris](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kikoeris](https://community.localwp.com/u/kikoeris)\
**Post date:** [June 7, 2024, 5:10pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/14 "2024-06-07T17:10:54Z")

</div>

well i dont have the uac enable. i check it.  
when i go to command prompt and try to change the path it show me this

 ![Screenshot_2](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/f/e/fe73ad2602798afaeec18a1079addaba276f2cd2.jpeg)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 7, 2024, 5:15pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/15 "2024-06-07T17:15:51Z")

</div>

So it doesn’t look like the hosts file is at the usual location, which means it’s possible that it may have been moved or modified by another application, or there may be some unique system configuration with your setup. Here’s another method to locate it:

1. Open File Explorer.
2. Navigate to the "C:" drive.
3. Use the search bar in the top-right corner to search for “hosts”.
4. Make sure to check “Hidden items” in the View tab of File Explorer, as the hosts file is sometimes set as hidden.

If you still can’t locate it, there might be some system-level configuration or software interference which might explain the issues you’ve been having here but would be tough for us to advise on.

Do you have another machine you could use or test with?

---

<div class="post-metadata">

**Author:** ![kikoeris](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kikoeris](https://community.localwp.com/u/kikoeris)\
**Post date:** [June 7, 2024, 5:19pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/16 "2024-06-07T17:19:36Z")

</div>

the strange thing is that the host file is in the etc

 ![Screenshot_3](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/a/9/a9396727686d6b267ea1fa7c1fb3d7d6325bd6bc.jpeg)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 8, 2024, 1:58pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/17 "2024-06-08T13:58:39Z")

</div>

It’s normal to have some Hosts file backups show up but it’s curious to me that those two in your screenshot are from 2015 and 2022.

If you go back to command prompt, did you try just running this?

`C:\Windows\System32\drivers\etc`

It looks like from your screenshot you tried running some other variations like

`C:\Windows\System32\drivers\etc\hosts` or `C:\Windows\System32\drivers\`

---

<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:** [September 6, 2024, 1:59pm UTC](https://community.localwp.com/t/i-have-issue-with-the-host-file/43212/18 "2024-09-06T13:59:04Z")

</div>

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