Get correct host value for WebSocket request