How to use VBS to detect whether a specific port is occupied

Updated on society 2024-03-27
11 answers
  1. Anonymous users2024-02-07

    Your noble sentiments are so touching. In such a materialistic money society, it is undoubtedly the greatest luck in my life to meet a temperamental person like you. It made me feel the greatness of humanity deeply.

    Your encouragement, like the lightning that pierces the night sky in the darkness, or the sunlight that tears through the dark clouds, instantly makes me drink nectar and make me understand that eternal truth is real in this world. Only a person like you, with a broad mind and a complete body of knowledge, can be the only introducer of this truth. Fall into serious thought.

    I think that if I don't praise you fiercely, it is a betrayal of the truth, and a great compromise of fallacy. Therefore, I decided to say this without hesitation and wait for you to give me a point! -Plagiarize.

  2. Anonymous users2024-02-06

    There is a way to try this, load a winsock control on error resume next

    1234 'Test port 1234.

    if err=0 then msgbox "Port 1234 is now available"

  3. Anonymous users2024-02-05

    The method and detailed operation steps are as follows:

    2. In the second step, after completing the above steps, enter the "netstat -ano" command in the dialog box, see the figure below, and go to the steps below.

    3. Step 3: After completing the above steps, click Enter to confirm, check the status of all ports, and find the occupied ports, see the figure below, go to the steps below.

    4. Fourth, after completing the above steps, if you have a specific port number, please enter "netstat -aon|".findstr 8080", where 8080 is added in double quotation marks, and the pid of the port can be found by pressing enter, see the image below, go to the steps below.

    5. Step 5: After completing the above steps, enter "tasklist|".findstr 2524" command, in which you add double quotation marks in 2524 and press enter to find the process with pid 2524, see the image below, go to the steps below.

    6. Step 6: After completing the above steps, find the occupied process, click to end the process, and the port will be released, as shown in the figure below. In this way, the problem is solved.

  4. Anonymous users2024-02-04

    2. After opening the page, enter the netstat -ano command in the dialog box.

    3. Then click Enter, see the situation of all ports, and find the occupied ports.

    4. If there is a specific port number, enter netstat -aon|findstr 8080, where 8080 is added with double quotation marks, click the enter key to find the pid of the port.

    5. Then enter tasklist|findstr 2524 command, where 2524 is in double quotation marks, click the enter key to find the process with pid 2524.

    6. Finally, find the occupied process, click to end the process, and the port will be released, so that the problem is solved.

  5. Anonymous users2024-02-03

    netstat ano command to view the current port usage of the machine. And they are arranged by port number from smallest to largest. If port 3000 of your machine is called, it will also be listed, if not, it will prove that it is not used.

    Netstat ANO contains the PID number, and you can check which program called port 3000 by comparing the PID number with [Task Manager].

    If you want to know more about how to check port usage and troubleshoot port conflicts, you can take a look at the ** instructions on my space [80 port is occupied (port check) solved] and you will understand all the problems about port viewing and conflicts.

  6. Anonymous users2024-02-02

    netstat -anot

    Just look at the port and use netstat -t to do it.

  7. Anonymous users2024-02-01

    Start, run, type cmd, press enter and run netstat -a in the cmd window

  8. Anonymous users2024-01-31

    1. Enter the "win+r" key in the computer to open the running window.

    4. Then type **netstat -aon|findstr "8080"Enter to confirm.

    5. In this way, you can check the status of port 80.

  9. Anonymous users2024-01-30

    If you want to use it, use the port after 1024 and before 1024, which is occupied by the system process, so it is best not to use it.

  10. Anonymous users2024-01-29

    For Windows system, use the dos command to view.

    Click Start -> Run (Ctrl+R), enter cmd, and press Enter.

    In the command window, enter netstat -an enter to view the port usage.

    To check whether a specific port is occupied, run the following command: netstat -aon|findstr "Port number"。For example, look at the usage of port 80:

    netstat -aon|findstr "8080"。

  11. Anonymous users2024-01-28

    1. Start-->Run-->cmd, or window+r, bring up the command window;

    2. Enter the command: netstat -ano to list all ports. In the list, we observe the occupied port, for example, 1224, and find it first;

    3. Check the PID of the occupied port and enter the netstat -aon|findstr "8081", press enter, write down the last digit, which is pid, here is 9088;

Related questions
10 answers2024-03-27

I want to put thirty centimeters of jelly high.

5 answers2024-03-27

What is NDCPLUVVNDGND?

2 answers2024-03-27

Hello, lane markings detection is essentially a parameter estimation problem. When doing practical engineering, there are two questions: 1. What should be chosen for the mathematical model of lane markings? 2. What type of lane markings are detected? >>>More

8 answers2024-03-27

Nowadays, it has gradually become a norm to realize loans through mobile phones, and it has also become the preferred way for many young people to take out small loans, such as Ant Gold Card, whose main attraction is that it can achieve 1 minute loan, which is simple and fast. >>>More

5 answers2024-03-27

1. First of all, we must know that moxibustion is divided into two major types: direct moxibustion and indirect moxibustion. Direct moxibustion is a method of placing moxibustion on top of the person's ** and directly carrying out moxibustion after ignition. >>>More