From 609d81b193c514ca6f6479e2b57cb3236b0dba68 Mon Sep 17 00:00:00 2001
From: Tomasz Knapik <hi@tmkn.org>
Date: Wed, 9 Jan 2019 16:16:46 +0000
Subject: [PATCH] Revert "Fix React dev server not serving outside VM"

This reverts commit 4e73bd1d6c2b726a58d51f26e2a7cb6db85b6ffe.
---
 Vagrantfile | 1 -
 gulpfile.js | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/Vagrantfile b/Vagrantfile
index ddac713ee..3380da83a 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -33,7 +33,6 @@ 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 57304ec0e..85ed64030 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -256,7 +256,7 @@ gulp.task('watch:app', function watch (callback) {
         serverOptions
     )
 
-    server.listen(3000, "0.0.0.0", function(err) {
+    server.listen(3000, "localhost", function(err) {
         if(err) throw new console.PluginError("webpack-dev-server", err);
         // Server listening
         console.log("[webpack-dev-server]", "Running");
-- 
GitLab