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.

Allow bind Webpack to 0.0.0.0

See original GitHub issue

As far I’ve seen, npm start start webpack serving from localhost:3000.

It would be nice an option to bind IP 0.0.0.0 to webpack, like the option --host 0.0.0.0 Webpack already accept today.

This is specially useful when starting server from inside a Docker container: even mapping the port 3000 to localhost, Webpack doesn’t accepts connections from outside the container.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mauriciokleincommented, Jul 23, 2016

Ok, thanks for the quick feedback guys. Outstanding work 😃

0reactions
joemillervicommented, Feb 20, 2018

It seems that it is now public by default but you may have a flag in your package.json {private: true} that you need to set to false.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get access to webpack-dev-server from devices in ...
Run webpack-dev-server with --host 0.0.0.0 — this lets the server listen for requests from the network, not just localhost.
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
To get protocol / hostname / port from browser use webSocketURL: 'auto://0.0.0.0:0/ws' . devServer.compress. boolean = true. Enable gzip compression for ...
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 >
Webpack bind hostname or 0.0.0.0 ,not localhost
when I was running the command npm run start webpack dev server ,it binds the 8080 port on localhost, so I cannot access...
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