Skip to content

Allow bind Webpack to 0.0.0.0 #137

Closed
@mauricioklein

Description

@mauricioklein

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.

Activity

mxstbr

mxstbr commented on Jul 23, 2016

@mxstbr
Contributor

This will be doable with #128!

gaearon

gaearon commented on Jul 23, 2016

@gaearon
Contributor

Yep, we’ll probably go with #128—just want to make some other things work there first.

gaearon

gaearon commented on Jul 23, 2016

@gaearon
Contributor

#128 should have fixed this.
Will be out in next release.
(We might wait a week before doing it so we accumulate some fixes.)

mauricioklein

mauricioklein commented on Jul 23, 2016

@mauricioklein
Author

Ok, thanks for the quick feedback guys.
Outstanding work :)

gaearon

gaearon commented on Jul 27, 2016

@gaearon
Contributor

This should be fixed in 0.2.0 alpha, mind giving it a spin to confirm? Here's how: #190

joemillervi

joemillervi commented on Feb 20, 2018

@joemillervi

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.

locked and limited conversation to collaborators on Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gaearon@mxstbr@joemillervi@mauricioklein

        Issue actions

          Allow bind Webpack to 0.0.0.0 · Issue #137 · facebook/create-react-app