Port usage windows server


















Asked 12 years, 4 months ago. Active 3 years, 6 months ago. Viewed k times. Improve this question. Add a comment. Active Oldest Votes. Open up a command prompt then type Improve this answer. Abhineet 5, 22 22 silver badges 41 41 bronze badges. Chris Arnold Chris Arnold 5, 5 5 gold badges 31 31 silver badges 54 54 bronze badges. Gautam Mandal Gautam Mandal 1 1 silver badge 2 2 bronze badges.

Privacy policy. 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 The Netstat. 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:. For example, run the following command:. You can use the following shortcuts together with the query command to run common queries without having to set port and protocol options. Use the following syntax:. If you omit the shortcut, the q command queries TCP port For example, entering q dns in interactive mode is equivalent to running portqry -n You can use the set command to set options such as the source port or slow link delay.

Suppose you want to query a computer that has the IP address At the interactive mode command prompt, enter n This command produces output that resembles the following excerpt:. To send a DNS query, enter q dns at the interactive mode command prompt. PortQry uses this file to resolve port numbers to their corresponding service names. PortQry uses this information to select the format for its queries.

You can edit this file to direct PortQry to send formatted messages to an alternative port. For example, the following entry appears in a typical Services file:. You can edit this port entry or add an additional entry.

When you run PortQry in local mode, as in the previous example, you might see output that resembles the following excerpt. Such output indicates that the security context that PortQry is using doesn't have sufficient permissions to access all of the information that it requested. The following command queries the default UDP port on a computer that's specified by using its computer name:.

The following command runs the same query as the previous command but skips the name resolution step:. The following command queries UDP ports , , and in that sequence on the computer "myServer":. The following command queries the range of ports from port to port inclusive on the computer "myServer":. The following command queries TCP port on mail. If the file already exists, PortQry overwrites it without prompting for confirmation. The following command queries TCP ports , , and 25 on mail.

For each target port, PortQry waits twice as long as usual for a response. The following command uses UDP port if it's available on the local computer to send a query to UDP port 53 on If a service is listening on that port and responds to the query, it sends the response to UDP port on the local computer. By default, the LDAP service should be listening on this port.

If the LDAP service responds to the first query, PortQry uses an ephemeral source port to send the formatted query and receive any responses.

When this batch file runs, PortQry produces a log file that is named pqlog. The content of this file resembles the following:. The following command queries UDP port on the myServer computer. By default, the RPC service should be listening on this port. From this output, you can determine not only whether the service is listening on the port, but also which services or programs are registered with the RPC endpoint mapper database on the destination computer.

The output includes the universal unique identifier UUID for each program, the annotated name if one exists , the protocol that each program uses, the network address that the program is bound to, and the program's endpoint in square brackets.

When you specify the -r option in the PortQry command to scan a range of ports, PortQry doesn't query the RPC endpoint mapper for endpoint information. This parameter accelerates scanning a range of ports. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info.

Contents Exit focus mode.



0コメント

  • 1000 / 1000