gruntjs / grunt-contrib-connect

Start a static web server.
http://gruntjs.com
MIT License
714 stars 146 forks source link

Give hostname default more clarity for new users #165

Closed mzgoddard closed 9 years ago

mzgoddard commented 9 years ago

For new web developers it can be not clear that 0.0.0.0 can be accessed from any IPv4 address for their system like the 127.0.0.1 loopback.

This is in response to https://github.com/gruntjs/grunt-contrib-connect/issues/164 to help inform developers so that the current default can remain useful to all developers.

mzgoddard commented 9 years ago

As a side note the '*' hostname possible value seems confusing. And I can see how the value it derives to '' might be more confusing. In theory '' being the NULL value normally passed to socket's bind C function may let a kernel bind IPv6 addresses as well. Though historically as far as I know '' has mapped to specifically '0.0.0.0'. Talking about both lightly in the docs seems a little confusing since their at least current result is the same.

mzgoddard commented 9 years ago

@bfred-it Do you think the wording in here would help someone new to 0.0.0.0? Any thoughts on how it may be improved?

mzgoddard commented 9 years ago

Took @bfred-it's rewording.