Partik Chandra
Partik Chandra

Reputation: 21

How to fix Could not connect to Appium server issue

I'm trying to run the Appium server but it is giving this error Could not connect to Appium server URL 'http:// 127.0.0.1:4723/wd/hub'. Please check if the server is running and the URL is correct (valid URLs can be found at the start of the Appium server log). If you are using the Inspector's browser version, ensure the server has been started with '--allow-cors'.

enter image description here

enter image description here

I have unabled the --alloe cors and the server is already running in the 127.0.0.1:4723

Upvotes: 0

Views: 1318

Answers (1)

DEEKSHITH G
DEEKSHITH G

Reputation: 11

Install the package globally

npm install --global kill-port

Stop the process on port 4723

kill-port --port 4723

Note: You are currently using an old version of Appium. Please migrate to the latest version of the Appium Java client. After upgrading, the framework will need to be revamped accordingly.

Upvotes: 1

Related Questions