List all the processes using Port 80 and Port 443

Posted on 2007-07-20
Last Modified: 2013-11-13
I need to write a code to basically list all the processes in Windows Operating System that are using Port 80 and port 443 of the Windows Socket. The code should be executable on both Windows XP and Windows Vista.
Question by:randhirshinde
    LVL 16

    Accepted Solution

    Hello randhirshinde,

    If you have GREP for windows installed, you could run "netstat -a -o -p tcp | grep http" which will list all open connections and the owning process PID's From there you can then 'extract' the PID and use "tasklist | grep PID" to get the process numbers. Not sure how to do this in a script though.


    LVL 38

    Expert Comment

    by:Philip Elder
    Download Microsoft's PortQry:

    Has a GUI and command line version. Works very will.


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Several part series to implement Internet Explorer 11 Enterprise Mode
    When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
    The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now