Giter Club home page Giter Club logo

Comments (10)

 avatar commented on May 22, 2024

For the use here in a hosts file, 0.0.0.0 might result in faster behavior for certain browsers and operating systems. In fact, you can just use a single 0 rather than 0.0.0.0 and reduce the size of the file, too.

http://www.dslreports.com/forum/r16790135-Large-Hosts-file-0-0-0-0-or-127-0-0-1
http://www.dslreports.com/forum/r24621780-hosts-127-0-0-1-vs-0-0-0-0
https://www.google.com/?gws_rd=ssl#q=0.0.0.0+or+127.0.0.1+in+hosts+file

from hosts.

StevenBlack avatar StevenBlack commented on May 22, 2024

you can just use a single 0 rather than 0.0.0.0 and reduce the size of the file, too.

@SteveRiley well blow me down. Isn't THAT interesting! Thanks!

from hosts.

StevenBlack avatar StevenBlack commented on May 22, 2024

Added label "enhancement" — going to try 0 in lieu of 0.0.0.0 because, man, that rocks.

from hosts.

StevenBlack avatar StevenBlack commented on May 22, 2024

OK the latest commit now uses 0 instead of 0.0.0.0. Works great +1

from hosts.

alterdaemon avatar alterdaemon commented on May 22, 2024

well, under Windows 10 "0 instead of 0.0.0.0" does not work for me...
I had to replace with 0.0.0.0

from hosts.

StevenBlack avatar StevenBlack commented on May 22, 2024

OK. I concede :-)

I've just updated the hosts file which uses 0.0.0.0 now.

Thanks for all the input!

from hosts.

 avatar commented on May 22, 2024

Well I feel pretty bad about that, sorry. For a 0 being the same thing as 0.0.0.0, I was just basing it on what I read. Next time, I'll test something myself before confirming it on forum like this.

from hosts.

alterdaemon avatar alterdaemon commented on May 22, 2024

For the record:
there should be also "127.0.0.1 localhost", not "0.0.0.0 localhost" :)
cheers

from hosts.

 avatar commented on May 22, 2024

there should be also "127.0.0.1 localhost", not "0.0.0.0 localhost" :)

+1

0.0.0.0 is for not-localhost
127.0.0.1 is for localhost

localhost should not be 0.0.0.0, because many software expect localhost is 127.0.0.1.

from hosts.

StevenBlack avatar StevenBlack commented on May 22, 2024

@Espress0 line 8 of the current hosts file says

127.0.0.1 localhost

Have a look :-)

from hosts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.