diff --git a/demos/web/index.html b/demos/web/index.html
index f0443f8..761def7 100644
--- a/demos/web/index.html
+++ b/demos/web/index.html
@@ -234,6 +234,6 @@ limitations under the License.
redrawPeople();
// createSocket("ws://facerec.cmusatyalab.org:9000", "CMU");
- createSocket("ws:127.0.0.1:9000", "Local");
+ createSocket("ws:" + window.location.hostname + ":9000", "Local");