How to free up a port on windows ?

2.58K viewsProgrammingerror free port troubleshooting windows
0

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

Answered question
0
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    127.0.0.1:3000         0.0.0.0:0              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
You are viewing 1 out of 1 answers, click here to view all answers.
Write your answer.

Categories