Also, each hosts file only worked for the computer it was on, and keeping them in sync with the changes in hostnames and IP addresses became a huge pain.įor example, imagine that you have two computers, A and B. The hosts files system worked well for the early internet, but there were a few major problems.Īs the internet grew, so did the length and complexity of the hosts files. That way, instead of having to remember a long IP address, all you had to do was visit localhost. What's a hosts file anyway?īack in the early days of the internet, before it was widespread, computers used a hosts file to map long, hard to remember IP addresses with much shorter, easier to remember hostnames.įor example, here's a line you'll find in many hosts files on Windows, Linux, and macOs: 127.0.0.1 localhost In this article we'll cover what a hosts file is, how to edit it on Windows, and we'll go over some neat tricks you can do with it. or if you want to set up some helpful shortcuts to internal IP addresses.you want a quick and simple way to block some websites.you suspect malware has tampered with the hosts file.you're having trouble with local development. But knowing where it is and how it works can be helpful if: In most cases you probably won't need to update your hosts file on Windows. While the internet is only about 30 years old, in many ways the hosts file is a relic of its (not so ancient) past.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |