Microsoft Knowledge Base Article - 310099 Comments? Provide us with feedback on this article Related Support Centers Small Business Server Windows 2000 Windows 2000 - Developer Windows Server 2003 Other Support Options Contact Microsoft Phone Numbers, Support Options and Pricing, Online Help, and more. Customer Service For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more. Newsgroups Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services. Description of the Portqry.exe Command-Line Utility The information in this article applies to: Microsoft Windows Server 2003, Standard Edition Microsoft Windows Server 2003, Enterprise Edition Microsoft Windows 2000 Server Microsoft Windows 2000 Advanced Server Microsoft Windows 2000 Professional This article was previously published under Q310099 SUMMARY Portqry.exe is a command-line utility that you can use to help troubleshoot TCP/IP connectivity issues. Portqry.exe runs on Windows 2000-based computers and Windows Server 2003-based computers. The utility reports the port status of TCP and UDP ports on a computer that you select. MORE INFORMATION Portqry.exe reports the status of a TCP/IP port in one of the following three ways: Listening A process is listening on the port on the computer that you selected. Portqry.exe received a response from the port. Not Listening No process is listening on the target port on the target system. Portqry.exe received an Internet Control Message Protocol (ICMP) "Destination Unreachable - Port Unreachable" message back from the target UDP port. Or if the target port is a TCP port, Portqry received a TCP acknowledgement packet with the Reset flag set. Filtered The port on the computer that you selected is being filtered. Portqry.exe did not receive a response from the port. A process may or may not be listening on the port. By default, TCP ports are queried three times, and UDP ports are queried one time before a report indicates that the port is filtered. Portqry.exe can query a single port, an ordered list of ports, or a sequential range of ports. Examples The following command tries to resolve "reskit.com" to an IP address and then queries TCP port 25 on the corresponding host: portqry -n reskit.com -p tcp -e 25 The following command tries to resolve "169.254.0.11" to a host name and then queries TCP ports 143,110, and 25 (in that order) on the host that you selected. This command also creates a log file (Portqry.log) that contains a log of the command that you ran and its output. portqry -n 169.254.0.11 -p tcp -o 143,110,25 -l portqry.log The following command tries to resolve my_server to an IP address and then queries the specified range of UDP ports (135-139) in sequential order on the corresponding host. This command also creates a log file (my_server.txt) that contains a log of the command that you ran and its output. portqry -n my_server -p udp -r 135:139 -l my_server.txt PortQry.exe is available for download from the Microsoft Download Center: Download PortQry.exe now