diff --git a/web-service/public/js/bundle.js b/web-service/public/js/bundle.js
index 2c34cbe04a8c2b7c4d93f7d1ba9c5fd82e696b23..b26b56a29f616bdcdcbb39f31a45d98ef4bb9065 100644
--- a/web-service/public/js/bundle.js
+++ b/web-service/public/js/bundle.js
@@ -109,8 +109,8 @@ createCard = (url, viewers) => {
 
 createPeer = () => {
     // FOR PRODUCTION
-    //const ws = new WebSocket("ws://" + location.host + ":" + (location.port == "" ? "80" : location.port) + location.pathname);
-    const ws = new WebSocket("ws://localhost:8080")
+    const ws = new WebSocket("ws://" + location.host + ":" + (location.port == "" ? "80" : location.port) + location.pathname);
+    //const ws = new WebSocket("ws://localhost:8080")
     ws.binaryType = "arraybuffer";
     peer = new Peer(ws)
 }
diff --git a/web-service/public/js/index.js b/web-service/public/js/index.js
index 3f53e3d5a8d25fade9c1f5bd458d82c44627fb75..3f9093481c5cb279e4594374f48f1e72ccdda470 100644
--- a/web-service/public/js/index.js
+++ b/web-service/public/js/index.js
@@ -107,8 +107,8 @@ createCard = (url, viewers) => {
 
 createPeer = () => {
     // FOR PRODUCTION
-    //const ws = new WebSocket("ws://" + location.host + ":" + (location.port == "" ? "80" : location.port) + location.pathname);
-    const ws = new WebSocket("ws://localhost:8080")
+    const ws = new WebSocket("ws://" + location.host + ":" + (location.port == "" ? "80" : location.port) + location.pathname);
+    //const ws = new WebSocket("ws://localhost:8080")
     ws.binaryType = "arraybuffer";
     peer = new Peer(ws)
 }