question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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’,

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
erezmuscommented, Jun 4, 2022

you need to specify the host option, e.g.

vue-cli-service serve --open --host localhost
8reactions
TothingWaycommented, Apr 8, 2022

When will this problem be fixed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI Service - Vue CLI
Inside a Vue CLI project, @vue/cli-service installs a binary named vue-cli-service . You can access the binary directly as vue-cli-service in ...
Read more >
How to change port number in vue-cli project - Stack Overflow
If you're using vue-cli 3.x, you can simply pass the port to the npm command like so: npm run serve -- --port 3000....
Read more >
Vue CLI: Using a custom domain | Web Development Blog
Vue CLI defaults to a localhost URL. This quick change allows a custom domain to be used instead.
Read more >
Vue-cli 5 open 0.0.0.0:9000 instead of localhost:9000
Vue -cli 5 open 0.0.0.0:9000 instead of localhost:9000 ... My devserver on my webpack config 5 for no vuejs experiments looks like this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found