try and use window hostname for connect url