Using hosts file to block sites: Use 127.0.0.1 or 0.0.0.0 ?


  1. Posts : 1,503
    X
       #1

    Using hosts file to block sites: Use 127.0.0.1 or 0.0.0.0 ?


    I've always blocked domain names in the hosts file by assigning the IP as 127.0.0.1
    But I've been reading about the use of 0.0.0.0 instead.
    What's the difference? Is one better than the other?
      My Computer


  2. Posts : 34,880
    Win 10 Pro (1903) (2nd PC is 21H2)
       #2

    How to Geek can help..
    What is the Difference Between 127.0.0.1 and 0.0.0.0?

    For example, 127.0.0.1 is used to in re-routing email through my anti-SPAM program on my PC.
    Last edited by dalchina; 02 Jan 2018 at 05:00.
      My Computers


  3. Posts : 4,172
    Windows 10 Pro x64 Latest RP
       #3

    Technically 0.0.0.0 is the network segment broadcast address and 127.0.0.1 is the current device

    It is usual to use 127.0.0.1 as this routes packets (your data ), to a specific device (your current device) where it will be basically ignored

    Using 0.0.0.0 will generally send the data to all devices on the local segment which would also normally be rejected, but would greatly increase the potential traffic on the local network if there were more that a single device on the network.

    As the 0.0.0.0 address has an ambiguous usage it can act in various ways depending on the hardware in use

    127.0.0.1 is always a specific address so should be used as a loop-back address to kill potentially problem data packets)
    Last edited by Barman58; 27 Sep 2018 at 03:25.
      My Computers


  4. Posts : 2,422
    Windows 10 Pro x64
       #4

    Barman58 said:
    Technically 0.0.0.0 is the network segment broadcast address and 127.0.0.1 is the current device

    It is usual to use 127.0.0.1 as this routs packets (your data ), to a specific device (your current device) where it will be basically ignored

    Using 0.0.0.0 will generally send the data to all devices on the local segment which would also normally be rejected, but would greatly increase the potential traffic on the local network if there were more that a single device on the network.

    As the 0.0.0.0 address has an ambiguous usage it can act in various ways depending on the hardware in use

    127.0.0.1 is always a specific address so should be used as a loop-back address to kill potentially problem data packets)

    Thanks a lot Nigel
    The best description I've seen on that matter!!!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:07.
Find Us




Windows 10 Forums