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.

host 0.0.0.0 for webpack-dev-serve

See original GitHub issue

I need to specify the host 0.0.0.0 for webpack-dev-server. Please tell me how I can do it in vue-cli?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
twhtanghkcommented, Jan 22, 2018

another way to bind on all interfaces

export HOST=0.0.0.0
npm run dev
1reaction
megapctrcommented, Apr 11, 2017

You’re right, but surprisingly that patch was enough in my case

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - How to make the webpack dev server run on port 80 ...
Something like this worked for me. I am guessing this should work for you. Run webpack-dev using this webpack-dev-server --host 0.0.0.0 --port 80....
Read more >
host 0.0.0.0 Not working #882 - webpack/webpack-dev-server
I run the webpack-dev-server with params --host 0.0.0.0, then visit the page through my ip, the page shows "Invalid Host header".
Read more >
DevServer - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >
host 0.0.0.0" to the startup option of webpack-dev-server using ...
It is necessary to give "--host 0.0.0.0" to the startup option of webpack-dev-server in the docker container in which server you want to...
Read more >
Accessing localhost externally when using webpack-dev-server
Accessing localhost externally when using webpack-dev-server ... devServer: { host: '0.0.0.0' // Allows external connections to localhost }
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