check whether WebSocket host address is correct, if yes use it