Skip to content

Support IPv6 (for --open) #1233

@ferrybig

Description

@ferrybig
  • Operating System: Windows 10 64 bit
  • Node Version: v9.2.0
  • NPM Version: 5.5.1
  • webpack Version: ^3.9.1
  • webpack-dev-server Version: ^2.9.5
  • This is a bug
  • This is a feature request
  • This is a modification request

Code

//package.json
{
  "name": "test projec",
  "version": "1.0.0",
  "keywords": [  ],
  "author": "Fernando van Loenhout",
  "dependencies": {  },
  "directories": {
    "test": "test"
  },
  "devDependencies": {
    "webpack": "^3.9.1",
    "webpack-dev-server": "^2.9.5"
  },
  "scripts": {
    "dev": "webpack-dev-server --progress --colors --hot --content-base dist/ --open --config ./webpack.config.js --inline --watch --host :: --disableHostCheck",
  },
}

Expected Behavior

Webpack dev server starts, hosts server on all ip addresses (because of ::), then opens localhost to view the website

Actual Behavior

Webpack dev server starts http://[::]:8080/ in browser what is an invalid ip, what goes against the examples shown here: CLI: Host and Port Options

For Bugs; How can we reproduce the behavior?

Start the dev server using --host :: and --open

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions