Reputation: 83
I am using Appium version V1.15.0 and have already start the server successfully with the default Host: 0.0.0.0 and Port: 4723
But now when i try to start the server it shows me this error "Error Starting Appium server: listen EADDRINUSE 0.0.0.0:4723"
I have tried to solve this issue by changing the port but could not find any solution.
Suggest me if you guys have any better solution.
Upvotes: 3
Views: 14629
Reputation: 41
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.
Upvotes: 0
Reputation: 617
That because port 4723 has been used.
We gonna find which process using it
sudo lsof -i :4723
input your Mac user password, press Enter and the result will similar to
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
AppX 68286 huyck 65u IPv4 0x31233f2022a17f56 0t0 TCP *:4723 (LISTEN)
that mean AppX with PID 68286 is using this port
And we are gonna kill it (replace 68286 with your PID)
sudo kill -9 68286
Another easier way, restart the machine could solve this problem Hope this helps!
Upvotes: 4
Reputation: 425
If EADDRINUSE, Address already in use
is the issue,
do
ps aux | grep node
to get the process ids.
Then:
kill -9 PID
Doing the -9 on kill sends a SIGKILL.
Upvotes: 3
Reputation: 83
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 steps: 1. Check if the port is listening to any other services. Open command prompt: Type netstat -a -b
This way i have solved this problem.
Upvotes: 3