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"); diff --git a/demos/web/js/openface-demo.js b/demos/web/js/openface-demo.js index 0bd13a1..22fa49f 100644 --- a/demos/web/js/openface-demo.js +++ b/demos/web/js/openface-demo.js @@ -329,7 +329,7 @@ function changeServerCallback() { case "Local": socket.close(); redrawPeople(); - createSocket("ws:127.0.0.1:9000", "Local"); + createSocket("ws:" + window.location.hostname + ":9000", "Local"); break; case "CMU": socket.close();