Picture of Bill Randall
Clear port 9001
by Bill Randall - Thursday, 11 June 2020, 10:42 AM
 

Hi,

Can anyone advise me on the best way to clear port 9001?  I'm trying to run grunt server, and am receiving the following:  Fatal error: Port 9001 is already in use by another process.

 

Thanks!

Bill


Picture of Oliver Foster
Re: Clear port 9001
by Oliver Foster - Thursday, 11 June 2020, 11:36 AM
 

Which operating system?

Are there any other programs which use port 9001 that you know of?

Has this grunt command worked before?

Do you have any other terminals open with a server running in them?

Have you tried restarting your computer?

 

Picture of Bill Randall
Re: Clear port 9001
by Bill Randall - Thursday, 11 June 2020, 12:15 PM
 

Hi Oliver, some answers below:

Which operating system?  Windows 10

Are there any other programs which use port 9001 that you know of?  No, I don't think so.

Has this grunt command worked before?  Yes, no problems before.

Do you have any other terminals open with a server running in them?  No.

Have you tried restarting your computer?  Yes, several times, but no luck.

 

Thanks for your help.

Picture of Oliver Foster
Re: Clear port 9001
by Oliver Foster - Thursday, 11 June 2020, 1:18 PM
 

You'll need to run `cmd` as administrator by typing `cmd` into the start menu and right clicking on it.

Then you can run `netstat -b` in the terminal to see all the open connections with ports included and the process the connection belongs to.

ctrl+c exits `netstat` which stays running and polls for new connections otherwise.

 

Once you figure out what the executable is called [node.exe] [mongod.exe] then we can figure out what is blocking.

 

 

 It'll look something like this:


Picture of Bill Randall
Re: Clear port 9001
by Bill Randall - Wednesday, 17 June 2020, 1:20 PM
 

Thanks for your help, Oliver!  Turns out it was some Intel graphics card software blocking it.  It's working again now.

 

Picture of Oliver Foster
Re: Clear port 9001
by Oliver Foster - Wednesday, 17 June 2020, 2:06 PM
 

Lovely! No problem!