The old instance of Appium server is still running. You’ll need to stop that instance if you want to start a new one. Methods for stopping the Appium server vary by operating system (Windows, Mac OS X, Linux), but reboot will work for any of them.
A web search would also help with this query: “stop process <operating system>”. Here is one for Mac OS X:
Thanks for your answer. But it’s showing the same problem even after stop the instance. I am using Appium desktop in Windows machine. And ended the previous process from Task manager. So i am pretty sure that ending the previous process is not going to help me. Do you have any other solution to share?
So finally, I have found the solution. After restarting my computer, i could successfully run the Appium server.
If anyone face the same problem. Please follow below things:
Check if the port is listening to any other services.
Open command prompt: Type netstat -a -b
Either kill that service or try with different port.
The following solution on windows worked for me
C:\Users\username> taskkill /F /IM node.exe
SUCCESS: The process “node.exe” with PID 13992 has been terminated.