Windows how to view port usage

Recommended for you: Get network issues from WhatsUp Gold. Not end users.





After the start, running the --cmd command prompt input into netstat -ano can see all connected PID in the task manager to find the corresponding to the PID program without PID the task manager, can choose the "view" in the task manager - "select the column"

        Often, we find that when starting the application systems need to port being used by another application, how to know who holds we need to port, a lot of people are headache, here introduces a kind of method is very simple, I hope useful for everyone

If we need to identify who occupied the 9050 port of our

1, The Windows platform
Executed on the windows command line window:
1 see all port usage
C:\>netstat -ano
Agreement    The local address                     The external address               State                   PID
  TCP    127.0.0.1:1434         0.0.0.0:0              LISTENING       3236
  TCP    127.0.0.1:5679         0.0.0.0:0              LISTENING       4168
  TCP    127.0.0.1:7438         0.0.0.0:0              LISTENING       4168
  TCP    127.0.0.1:8015         0.0.0.0:0              LISTENING       1456
  TCP    192.168.3.230:139      0.0.0.0:0              LISTENING       4
  TCP    192.168.3.230:1957     220.181.31.225:443     ESTABLISHED     3068
  TCP    192.168.3.230:2020     183.62.96.189:1522     ESTABLISHED     1456
  TCP    192.168.3.230:2927     117.79.91.18:80        ESTABLISHED     4732
  TCP    192.168.3.230:2929     117.79.91.18:80        ESTABLISHED     4732
  TCP    192.168.3.230:2930     117.79.91.18:80        ESTABLISHED     4732
  TCP    192.168.3.230:2931     117.79.91.18:80        ESTABLISHED     4732

2 see specified occupied port
C:\>netstat -aon|findstr "9050"
Agreement    The local address                     The external address               State                   PID
  TCP    127.0.0.1:9050         0.0.0.0:0              LISTENING       2016
P: see, port occupied process of the process number 2016, continue with the following command: (can also go to the task manager to view the PID corresponding process)
3 see the PID corresponding process
C:\>tasklist|findstr "2016"
Image name                       PID session name              Conversation#       Memory usage
========================= ======== ================
  tor.exe                     2016 Console                 0     16,064 K

P: very clear, tor takes up your port.

4 the end of the process
C:\>taskkill /f /t /im tor.exe
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Iris at December 12, 2013 - 10:33 AM