Vue-cli 5 open 0.0.0.0:9000 instead of localhost:9000
See original GitHub issueVersion
5.0.0-rc.0
Reproduction link
Environment info
Windows 11
Steps to reproduce
Start a new vue-cli5.0 on windows
What is expected?
Open one the correct url :
- Local: http://localhost:9000/
- Network: http://192.168.1.26:9000/
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:
- Created 2 years ago
- Comments:19 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
you need to specify the host option, e.g.
When will this problem be fixed?