Use tasklist and netstat In the CMD command to obtain the network connection of the current process

Source: Internet
Author: User

Use the shortcut key "START key + R", or open start, search "run", and run cmd.


Enter the tasklist command to obtain the name, PID, session, and memory usage of the current process.

For example, the current two QQ's PID is 4616,4618. Firefox's PID is 4544.


Run the netstat command. netstat has many usage options. Here, netstat-An and netstat-O are used.



The information obtained through netstat-O is the most accurate, because the network connection established by each program and the peer address can be clearly located.


For example, PID 4544 indicates that the Firefox browser is conducting a network session. PID 4616 is the PID of the previous QQ, indicating that QQ is communicating with the campus network INTRANET 10.15.52.157. In addition, the port code HTTP is equivalent to 80, and HTTPS is equivalent to 443.

/*

* *****

* Http://blog.csdn.net/xyydyyqf

*/

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.