Skip to content

Vue-cli 5 open 0.0.0.0:9000 instead of localhost:9000 #6834

@Makio64

Description

@Makio64

Version

5.0.0-rc.0

Reproduction link

github.com/vuejs/vue-cli

Environment info

Windows 11 

Steps to reproduce

Start a new vue-cli5.0 on windows

What is expected?

Open one the correct url :

What is actually happening?

Open
http://0.0.0.0:9000


everything was working fine on vue-cli4.
My devserver on my webpack config 5 for no vuejs experiments looks like this :

devServer: {	open: true,	compress: true,	https: true,	hot: true,	allowedHosts: 'all',	historyApiFallback: true,	port: 9000,	host: 'local-ip',	static: {	directory: path.resolve(__dirname, './app'),	staticOptions: {},	watch: true,	},	}, 

important parameter I change when i switch from v4 to v5 :
host: 'local-ip',

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions