HOWTO: How do I list applications using network ports?

Expand / Collapse

This article applies to:

  • All Marshal Product Line products


  • How do I determine what port an application is using?
  • How do I determine what application is using a specific port?


Follow the steps below to determine if a network port is being used on a server, and the specific application using the port:

  1. Open a command window
  2. Type netstat -nabo
    • The output displays all listening applications and network connections established from the machine, the local and remote IP address and port in use, the process ID and the name of the executable that has established the connection.
    • Example output:

      Active Connections

        Proto  Local Address          Foreign Address        State           PID
        TCP                 LISTENING       4

       Can not obtain ownership information
        TCP                LISTENING       872
        TCP                LISTENING       4

       Can not obtain ownership information
        TCP               LISTENING       2308
        TCP               LISTENING       2308
        TCP              LISTENING       2792
        TCP              LISTENING       2792
        TCP              LISTENING       2984
        TCP              LISTENING       544
        TCP              LISTENING       996
        TCP              LISTENING       244
        TCP              LISTENING       636
        TCP              LISTENING       624
        TCP              LISTENING       1796
        TCP              LISTENING       1744
        TCP              LISTENING       4

       Can not obtain ownership information
        TCP      ESTABLISHED     1796
        TCP      ESTABLISHED     2792

Results displayed can vary depending on your permissions, and the results sometimes take a long time to generate.

In some cases you might find that the following steps allow you to get more information more quickly:

  1. Type netstat -nao
  2. In the output column "Local Address", locate the port number of interest. Note the PID (Process ID) that corresponds to the port.
  3. Use Task Manager or the command line Tasklist command to find the name of the executable.
    • For instance:
      C:\> tasklist | findstr 2308
      WMProxy.exe                 2308 Console                 0     17,104 K


  • You can use this method to determine if another proxy or SMTP listener is binding to ports required by MailMarshal SMTP or WebMarshal. You can also check for issues with the ports used by the Array Managers and user interfaces.
  • You can limit the output of NETSTAT with additional parameters. To list parameters type netstat -?

    To contact Trustwave about this article or to request support:

    Rate this Article:

    Add Your Comments

    Comment submission is disabled for anonymous users.
    Please send feedback to Trustwave Technical Support or the Webmaster