diff --git a/index.html.gz b/index.html.gz
index ea14f5c1..2e2f7332 100644
Binary files a/index.html.gz and b/index.html.gz differ
diff --git a/www/index.html b/www/index.html
index 25bf5250..a06001ad 100644
--- a/www/index.html
+++ b/www/index.html
@@ -6,7 +6,7 @@
ESP3D WebUI
-
+
diff --git a/www/js/app.js b/www/js/app.js
index ad428737..ded8697b 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -66,7 +66,7 @@ function startSocket(){
}
else {
console.log("Socket port is :" + websocket_port);
- ws_source = new WebSocket('ws://'+document.location.host+':' + websocket_port,['arduino']);
+ ws_source = new WebSocket('ws://'+document.location.hostname+':' + websocket_port,['arduino']);
}
ws_source.binaryType = "arraybuffer";
ws_source.onopen = function(e){