update hostname in connect.js