diff --git a/widget.html b/widget.html
index b6a099b..bbb8c77 100644
--- a/widget.html
+++ b/widget.html
@@ -177,7 +177,7 @@
...
function connectToDevice() {
jsxapi
- .connect("localhost", {
+ .connect(ipAddress, {
username: username,
password: password,
})