Connect websocket to the current hostname