Two commands to view port occupancy processes

Source: Internet
Author: User

C:/>netstat-ano|findstr "80"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2932
TCP 127.0.0.1:1110 127.0.0.1:3800 time_wait 0
TCP 127.0.0.1:1110 127.0.0.1:3806 time_wait 0
TCP 127.0.0.1:3782 127.0.0.1:8005 time_wait 0
TCP 127.0.0.1:3880 127.0.0.1:1110 time_wait 0
TCP 127.0.0.1:4080 127.0.0.1:1110 time_wait 0
TCP 172.16.8.78:3786 123.138.238.80:443 established 384
TCP 172.16.8.78:3819 219.232.224.80:80 time_wait 0
TCP 172.16.8.78:3820 219.232.224.80:80 time_wait 0
TCP 172.16.8.78:3821 219.232.224.80:80 time_wait 0
TCP 172.16.8.78:3851 202.106.184.204:80 time_wait 0
TCP 172.16.8.78:3909 202.108.33.62:80 time_wait 0
TCP 172.16.8.78:3949 211.100.26.124:80 time_wait 0
TCP 172.16.8.78:3971 211.100.26.75:80 time_wait 0
TCP 172.16.8.78:3973 211.100.26.75:80 time_wait 0
TCP 172.16.8.78:3977 203.208.39.164:80 time_wait 0
TCP 172.16.8.78:3979 203.208.39.164:80 time_wait 0
TCP 172.16.8.78:3981 203.208.39.164:80 time_wait 0
TCP 172.16.8.78:3991 211.100.26.85:80 established 384
TCP 172.16.8.78:3994 211.100.26.85:80 established 384
TCP 172.16.8.78:4015 210.83.79.32:80 Last_ack 384
TCP 172.16.8.78:4021 210.83.79.32:80 Last_ack 384
TCP 172.16.8.78:4023 210.83.79.32:80 Last_ack 384
TCP 172.16.8.78:4049 211.100.26.85:80 time_wait 0
TCP 172.16.8.78:4071 210.83.79.31:80 Last_ack 384

The first one is. 2932 is the process ID

C:/>tasklist|findstr "2932"
Skype.exe 2932 Console 0 25,584 K

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.