diff --git a/Vagrantfile b/Vagrantfile index 3380da83a0336ab154bd321a3aa39a7b784c88c0..ddac713ee5f5cc040bfe648cf7d0aebc5d30963e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -33,6 +33,7 @@ Vagrant.configure(2) do |config| # within the machine from a port on the host machine. In the example below, # accessing "localhost:8000" will access port 8000 on the guest machine. config.vm.network "forwarded_port", guest: 8000, host: 8000, id: "webserver" + config.vm.network "forwarded_port", guest: 3000, host: 3000, id: "reactserver" # Create a private network, which allows host-only access to the machine # using a specific IP. diff --git a/gulpfile.js b/gulpfile.js index 85ed64030c0677b9e398a21198814269fb194643..57304ec0e87c3e0f5807cf42c38e8012422020c8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -256,7 +256,7 @@ gulp.task('watch:app', function watch (callback) { serverOptions ) - server.listen(3000, "localhost", function(err) { + server.listen(3000, "0.0.0.0", function(err) { if(err) throw new console.PluginError("webpack-dev-server", err); // Server listening console.log("[webpack-dev-server]", "Running");