Search code examples
javascriptnpmhost

What does it mean to edit host file?


Looking at this repo and auto says:

Make sure to edit your host file

127.0.0.1 * http://localhost:3001

What does that mean?


Solution

  • If you are on a Unix system the file is at /etc/hosts - you will need to be root to edit this.

    On Windows it is at C:\Windows\system32\drivers\etc\hosts or something like that.

    Basically your hosts file is local a local Domain Naming System (DNS) - it's convenient to be able to find ip addresses that are local to your network that the public DNS can't know about