How to free up a port on windows ?

2.58K viewsProgrammingerror free port troubleshooting windows

How to get rid of error  listen EADDRINUSE: address already in use on windows

Answered question
WinMaster (anonymous) 0 Comments

Run the below command on windows to find the PID of the process that’s running on the port you want to free using the below command:-


netstat -ano | Findstr <portNo>

where portNo is the port which you want to free.


The above command will give an output like:-

TCP              LISTENING       14140


The last column is the PID in the above example


Run the below command in windows command prompt to free the process there.

taskkill -f /PID 14140


Replace 14140 with the actual PID that you see !!

Changed status to publish
Write your answer.