How i solve missing host entry issue

Bug Summary

Summarize the issue in one to two sentences.

Steps to reproduce

As precisely as you can, list the steps it takes to reliably reproduce the issue.

Environment Info

Describe your environment.

  • What Operating System are you using?
  • What versions of site software (Nginx, Apache, PHP, MySQL) is used?
  • What version of Local is installed?

Supporting info

Please provide your Local Log. See this Community Forum post for instructions on how to do so:

Include any screenshots or video recordings of the issue to help others reproduce.

Hello there @danial - welcome to the Local community! :wave:

Do you have anti-virus software installed on your computer that may be causing issues?

Here is some information and troubleshooting steps you can try related to anti-virus + Windows:

Let’s start there!

I apply these changes but still facing this issue?

HI @danial

Are you still experiencing issues with this?

We would be happy to assist with your Local troubleshooting! Could you provide some more details to help us take a further look?

  • What is your OS?

  • What version of Local are you on?

  • Please attach a copy of your Local Logs

Keep us posted and we’d be happy to help further!


Try with this one if you use with Windows 11 operating system. It might be because of the hosts file is hidden and you only see hosts.ics.

  1. Open Command Prompt and run with Administrator.

  2. Since you in administrator mode, your terminal will show something like this

  3. Now, you need to cd the path to your hosts folder.
    cd drivers\etc

  4. Then use this command
    attrib -r -a -h -s hosts

-r (remove read-only)
-a (remove archive attrib)
-h (remove hidden attrib)
-s (remove system attrib)

Hidden is the first layer of protection. “System” normally protects system files and you may not see them.

Then run again your local and see your domain inside your hosts files.