Error: Couldn't start Appium REST http interface listener. Requested port is already in use. Please make sure there's no other instance of Appium running already

Hi Guys!

I am new to appium automation and facing the issue to set up appium for automation.
Appium setup details-
Launching Appium with command: export ANDROID_HOME="/Users/vinaykhater/Downloads/android-sdk-macosx/"; ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address " 127.0.0.0" --port “4724” --debug-log-spacing --automation-name “Appium” --platform-name “Android” --platform-version “5.1” --no-reset --dont-stop-app-on-reset

error: Couldn’t start Appium REST http interface listener. Requested port is already in use. Please make sure there’s no other instance of Appium running already.

I got solution to change port number and to kill the process.
I didn’t find any appium related process running in my system and second i tried with different port number but issue remains same.

Need your expert advice to resolve it…
Thanks in advance !

try below
‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address " 127.0.0.0" --bootstrap-port “4724”

Changing the Port number and the activity name worked for me. When you get the error of “Port Already in use” then change the port number to 4725 and if you get the error “Permission denied to start the activity” then change the activity name.

1 Like

thank you sir
It works !