View the port number in Windows

Source: Internet
Author: User

1. Enter netstat-ano in cmd.

2. For example, if I check what occupies port 80, the corresponding process PID is 3600.

3. Enter tasklist to check which process PID 3600 is.ProgramRunning, we can quickly see That tomcat 6 is using PID 3600, which occupies port 80.

In this case, you can use taskkill/PID 3600/T/F to quickly close the process.

Or

Start -- run -- cmd enter the command prompt and enter netstat-ano. Then you can see all connected PIDs and find the program corresponding to the PID in the task manager. If no PID exists in the task manager, you can select "View"-"Select column" in the task manager"

If we need to determine who occupies our port 9050
1. Windows Platform
Run netstat-Aon | findstr "9050" in the Windows command line window"

TCP 127.0.0.1: 9050 0.0.0.0: 0 listening 2016

The port is occupied by a process with process number 2016. Run the following command: C:/> tasklist | findstr "2016"

Tor.exe 2016 console 0 16,064 K. The TOR occupies your port.

Related Article

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.