Which program uses port windows

How to determine which program uses or blocks specific Transmission Control Protocol ports in Windows Server 2003

This step-by-step article discusses how to determine which program uses or blocks specific Transmission Control Protocol (TCP) ports.

For a Microsoft Windows XP version of this article, see 281336.

Original product version: В Windows Server 2003
Original KB number: В 323352

Summary

The Netstat.exe utility has a new switch, the -o switch, that can display the process identifier (ID) that is associated with each connection. This information can be used to determine which process (program) listens on a particular port. For example, the netstat -ano command can produce the following output:

If you use Task Manager, you can match the process ID that is listed to a process name (program). With this feature, you can find the specific port that a program currently uses. Because a program already uses this specific port, another program is prevented from using that same port.

How to match the process ID to a program

To match the process ID to a program, follow these steps:

  1. Press Ctrl+Alt+Delete, and then click Task Manager.
  2. Click the Processes tab.
  3. If you don’t have a PID column, click View >Select Columns, and then click to select the PID (Process Identifier) check box.
  4. Click the column header that is labeled «PID» to sort the process by PIDs. You should be able to easily find the process ID and match it to the program that is listed in Task Manager.

How to obtain additional information about the Netstat.exe utility

To obtain additional information about the Netstat.exe utility, follow these steps:

  1. Click Start >Run.
  2. In the Open box, type cmd, and then click OK.
  3. At a command prompt, typenetstat /?.

—>

Читайте также:  Не запускается adrenalin windows 10

How to check which application is using which port

October 04, 2009

Today I found an easy way to check which application is using which port in my system. Here I’m sharing the steps. These steps are applicable for the Windows Operating System.

Checking which application is using a port:

  1. Open the command prompt — startВ В» runВ В» cmd or startВ В» All ProgramsВ В» AccessoriesВ В» Command Prompt.
  2. Type netstat -aon | findstr ‘[port_number]’ . Replace the [port_number] with the actual port number that you want to check and hit enter.
  3. If the port is being used by any application, then that application’s detail will be shown. The number, which is shown at the last column of the list, is the PID (process ID) of that application. Make note of this.
  4. Type tasklist | findstr ‘[PID]’ . Replace the [PID] with the number from the above step and hit enter.
  5. You’ll be shown the application name that is using your port number.

Checking which port is being used by a application:

This is exactly the reverse of the above steps.

  1. Open the command prompt — startВ В» runВ В» cmd or startВ В» All ProgramsВ В» AccessoriesВ В» Command Prompt.
  2. Type tasklist | findstr ‘[application_name]’ . Replace the [application_name] with the application that you want to check (for example, apache) and hit enter.
  3. Make note of the PID (second column) from the details shown.
  4. Type netstat -aon | findstr ‘[PID]’ . Replace the [PID] from the above step and hit enter.
  5. You’ll be shown the application detail and the corresponding port to which it is listening.

What program in Windows 10 uses port 80? [closed]

Want to improve this question? Update the question so it’s on-topic for Stack Overflow.

Closed 4 years ago .

I updated my Windows 7 PC to Windows 10. When I start AMPPS it says port 80 is used by another program . What program uses port 80?

3 Answers 3

It’s probably the W3SVC (World Wide Web Publishing Service) service. See the answer below:

  1. Click the start menu
  2. Type in Services
  3. Sort by Name
  4. Scroll down to World Wide Web Publishing Service (W3SVC) and disable it
Читайте также:  Wadk для windows 10

Per phpvillian’s answer, you can also run the following to help determine the culprit (make sure you open the command line with elevated privileges, e.g. «Run as administrator»):

You’re likely referring to Skype as it’s notorious to using port 80 without consideration. Open the command prompt and type netstat -a -b to get your answer. This question has been answered already and explains how to use netstat.

I had same problem but already solved. You can find used port from Windows Firewall.

  1. Click Start > Settings > Ethernet >Network and Internet > Windows Firewall
  2. In the left pane, click Advanced Settings
  3. In Windows Firewall with Advanced Security, click Inbound Rules.
  4. Find Local Port 80 with Protocol TCP. in my case is «World Wide Web Services (HTTP Traffic-In)»
  5. Once you find it, stop or disable that rule from Windows Services (World Wide Web Publishing Service).

if needed restart your pc.

Not the answer you’re looking for? Browse other questions tagged windows-10 port80 ampps or ask your own question.

Linked

Hot Network Questions

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.4.16.39093

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Find the PID of a process that uses a port on Windows

My service crash on startup with the classic:

How can I find the process for killing it?

7 Answers 7

Just open a command shell and type (saying your port is 123456):

You will see everything you need.

The headers are:

Find the PID of a process that uses a port on Windows (e.g. port: «9999»)

-a Displays all connections and listening ports.

-o Displays the owning process ID associated with each connection.

-n Displays addresses and port numbers in numerical form.

Then kill the process by PID

/F — Specifies to forcefully terminate the process(es).

Note: You may need an extra permission (run from administrator) to kill some certain processes

Command:

Output:

Now cut the process ID, «10396», using the for command in Windows.

Command:

Output:

If you want to cut the 4th number of the value means «LISTENING» then command in Windows.

Command:

Output:

If you want to do this programmatically you can use some of the options given to you as follows in a PowerShell script:

Читайте также:  Что делать если нет windows hello

However; be aware that the more accurate you can be the more precise your PID result will be. If you know which host the port is supposed to be on you can narrow it down a lot. netstat -aon | findstr «0.0.0.0:9999» will only return one application and most llikely the correct one. Only searching on the port number may cause you to return processes that only happens to have 9999 in it, like this:

The most likely candidate usually ends up first, but if the process has ended before you run your script you may end up with PID 12331 instead and killing the wrong process.

How to check which application is using which port

October 04, 2009

Today I found an easy way to check which application is using which port in my system. Here I’m sharing the steps. These steps are applicable for the Windows Operating System.

Checking which application is using a port:

  1. Open the command prompt — startВ В» runВ В» cmd or startВ В» All ProgramsВ В» AccessoriesВ В» Command Prompt.
  2. Type netstat -aon | findstr ‘[port_number]’ . Replace the [port_number] with the actual port number that you want to check and hit enter.
  3. If the port is being used by any application, then that application’s detail will be shown. The number, which is shown at the last column of the list, is the PID (process ID) of that application. Make note of this.
  4. Type tasklist | findstr ‘[PID]’ . Replace the [PID] with the number from the above step and hit enter.
  5. You’ll be shown the application name that is using your port number.

Checking which port is being used by a application:

This is exactly the reverse of the above steps.

  1. Open the command prompt — startВ В» runВ В» cmd or startВ В» All ProgramsВ В» AccessoriesВ В» Command Prompt.
  2. Type tasklist | findstr ‘[application_name]’ . Replace the [application_name] with the application that you want to check (for example, apache) and hit enter.
  3. Make note of the PID (second column) from the details shown.
  4. Type netstat -aon | findstr ‘[PID]’ . Replace the [PID] from the above step and hit enter.
  5. You’ll be shown the application detail and the corresponding port to which it is listening.
Оцените статью