How can I fix "could not connect to server" error in Appium?

I’m getting an error in Appium inspector: “Could not connect to server; are you sure it’s running? If you are using the browser version, also ensure your Appium server has been started with --allow-cors.”

Please help me fix this.

Hi Ana,

If you’re trying to create a session with LambdaTest in Appium inspector, please make sure to select “LambdaTest” tab on top of the Appium inspector before starting a session.