Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Windows Tutorials»Which Process is listening on a Port in Windows ?

    Which Process is listening on a Port in Windows ?

    RahulBy RahulOctober 28, 20202 Mins ReadUpdated:October 28, 2020

    How do I find out, which process is listening on a specific port on Windows operating system?

    This article will help you to find the process name listening on specific port on Windows system. Sometime you may have faced issue like “port in use” during application installation.

    You can choose one of the below given 2 methods. First method uses netstat to find pid of the process listening on specific port, then use tasklist to find process name by the pid.

    1. Using Default Command Prompt

    Use the following command to find out the process id (pid) listening on port 80. You can change this port to search for another port.

    c:\> netstat -aon | findstr ":80" | findstr "LISTENING"
    

    Output:

     TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       4
     TCP    [::]:80                [::]:0                 LISTENING       4
    

    The last column of the output shows the pid of the processes. The above output shows the pid is 4 for the process listening on port 80.

    Use this process id with task list command to find the process name.

    c:\> tasklist /fi "pid eq 4"
    

    You will see the process name in results.

    2. Using PowerShell Get-Process

    The second method uses PowerShell command to find out process running on specific port on Windows.

    Launch the PowerShell terminal and execute following command to find process name running on port 80. You can change port number to check for other ports.

    c:\> Get-Process -Id (Get-NetTCPConnection -LocalPort 80).OwningProcess
    

    You will see the process name in results.

    Conclusion

    In this tutorial, you have learned two methods to find process name listening on specific port on Windows system.

    port windows
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow To Remove Specific Array Element in PHP
    Next Article How to Install Postman on Ubuntu 18.04

    Related Posts

    How to Enable / disable Firewall in Windows

    Updated:May 17, 20222 Mins Read

    How to Start & Stop Windows Service via Command Line

    Updated:March 29, 20222 Mins Read

    How to Change Windows Hostname (Computer Name)

    Updated:March 11, 20223 Mins Read

    How To Install NVM on Windows

    Updated:April 16, 20223 Mins Read

    How to Scan Open Ports with Nmap

    5 Mins Read

    How to Check Computer Uptime in Windows

    3 Mins Read

    1 Comment

    1. Devid A on January 1, 2022 11:25 am

      Thanks for sharing informative content!

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.