Friday, September 7, 2012

Using netstat command and process explorer to check port usage by application

 

While installing Visual SVN server on Windows, the installation wizard showed that port 443 was being used by another program. I didn’t remember the program that was using this port, hence I wanted to check which program was using it. I did this on Windows 7 64 bit.

there are various options available  with the netstat command.

image

image

notice the PID 2324, check this PID in process explorer

image

In this case, TeamViewer is using the 443 port. Better to switch to an alternative port such as 8443

  1. Note: you may want to use the command netstat -a -n -o –b so that it also displays the application using the particular port of interest to you. This is good for a quick peek at the conflict, but using process explorer has its own advantages.
  2. you can use the pipe and find command to limit the output of the netstat command. netstat -a -n -o | find "443"

No comments: