Friday, December 16, 2022

windows find what is running on certain port

 To find out what process is running on a specific port in Windows, you can use the following steps:

  1. Open a command prompt by pressing the Windows key + R, then typing cmd and pressing Enter.

  2. In the command prompt, type the following command and press Enter:

netstat -a -o -n

This will show a list of all the network connections that are currently established, along with the local and foreign addresses and the state of each connection. The -o option shows the owning process ID associated with each connection, and the -n option shows the addresses and port numbers in numerical form.

  1. To find a specific port, you can use the find command to search the output of the netstat command. For example, to find all connections using port 80 (the default HTTP port), you can use the following command:
netstat -a -o -n | find ":80"

This will show all the connections that are using port 80, along with the process ID of the process that owns each connection.

  1. To find the name of the process that owns a particular process ID, you can use the tasklist command. For example, to find the process that owns process ID 1234, you can use the following command:
tasklist /fi "pid eq 1234"

This will show the name and other information about the process with the specified process ID.

Note: If you are running a 64-bit version of Windows, you may need to use the tasklist /fi "pid eq 1234" /v command instead, as the /fi option is not supported in the 32-bit version of tasklist.

No comments:

Post a Comment