Skip to content

Instantly share code, notes, and snippets.

@RebeccaWhit3
Last active August 5, 2017 07:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RebeccaWhit3/e9a9a240660f40b1bfad8ed14cd489ae to your computer and use it in GitHub Desktop.
Save RebeccaWhit3/e9a9a240660f40b1bfad8ed14cd489ae to your computer and use it in GitHub Desktop.
Windows OS • HOSTS File

Windows OS: HOSTS file

0.0.0.0 vs. 127.0.0.1

@ http://www.dslreports.com/speak/print/default;24622031

Using 0.0.0.0 instead of 127.0.0.1 is indeed faster because you don't have to wait for a timeout. It also does not interfere if you are running a web server on the local PC.

If you use 0.0.0.0, you may want to add this entry just before your first 0.0.0.0 "blocking" entry:

# Special Entries
0.0.0.0    0.0.0.0      # fix for traceroute and netstat display anomaly

Without that entry, some network status and diagnostic apps will use the hostname associated with your first 0.0.0.0 "blocking" entry as the name of the default IP address (which has caused a number of confused/confusing posts in this and other forums).

@ https://it.slashdot.org/comments.pl?sid=1743902&cid=33147262

  • Better to use 0.0.0.0 - since it's a real invalid IP, connecting to it fails instantly, while a program trying to connect to 127.0.0.1 will take a while before giving up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment