gruntjs / grunt-contrib-connect

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

Change default hostname, Chrome won't access http://0.0.0.0:*/ #181

Closed ricobl closed 8 years ago

ricobl commented 9 years ago

Recent Chrome versions won't access hostnames with "0.0.0.0", it will search instead.

It would be nice to change the default hostname.

Here is a question on Super User pointing that it is a non-routable meta-address used to designate an invalid, unknown or non applicable target:

http://superuser.com/questions/846721/chrome-wont-access-http-0-0-0-04200

xpavp03 commented 8 years ago

We currently detect 0.0.0.0 and open localhost instead. https://github.com/gruntjs/grunt-contrib-connect/blob/master/tasks/connect.js#L204

Also, hostname can be changed via Gruntfile.js

connect: {
  options: {
    hostname: 'localhost'

This ticket can be closed.