top of page

How To Use Port Query Tool (PortQry.exe) In Windows 10



PortQry is a command-line tool that you can use to help troubleshoot TCP/IP connectivity issues. This tool reports the status of target TCP and User Datagram Protocol (UDP) ports on a local computer or on a remote computer. It also provides detailed information about the local computer's port usage.




How to use Port Query Tool (PortQry.exe) in Windows 10




Typical port scanning tools report that the port has a LISTENING status if the target UDP port doesn't return an Internet Control Message Protocol (ICMP) "Destination unreachable" message. This result may not be accurate for one or both of the following reasons:


You can run PortQry at a command prompt in the same manner as any other command-line tool. Most of the examples in this article show command-line PortQry commands. In command-line mode, you can add multiple options to the command string to specify what query to run and how to run it. To run PortQry in command-line mode, run a command that uses the following syntax:


Instead of querying a port on a remote target computer, you can use PortQry in local mode to get detailed information about the TCP ports and the UDP ports on the local computer where PortQry runs. Use the following syntax to run PortQry in local mode:


The following command uses UDP port 3001 (if it's available) on the local computer to send a query to UDP port 53 on 192.168.1.20. If a service is listening on that port and responds to the query, it sends the response to UDP port 3001 on the local computer.


The following command uses UDP port 3000 (if it's available) on the local computer to send a query to UDP port 389 on myDomainController.contoso.com. 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 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.


Windows has many tools for diagnosing problems in TCP/IP networks (ping, telnet, pathping, etc.). But not all of them allow you to conveniently check the status or scan opened network ports on a remote server. The Portqry.exe utility is a convenient tool to check the response of TCP/UDP ports on remote hosts to diagnose issues related to the operation of various network services and firewalls in TCP/IP networks. Most often, the Portqry utility is used as a more functional replacement for telnet command, and unlike telnet, it also allows you to check open UDP ports. (adsbygoogle = window.adsbygoogle []).push();


PortQry has built-in support for some network services. These are LDAP, Remote Procedure Calls (RPC), e-mail protocols SMTP/POP3/IMAP4, SNMP, FTP/ TFTP, NetBIOS Name Service, L2TP, etc. In addition to checking port availability, the tool performs protocol-specific requests to obtain the status of services.


As you can see, the PortQry tool showed not only the availability of the 1434/UDP port but also the version of the SQL server and the names of the instances running on the SQL server and their TCP ports. The first DBINVENT instance listens on the default port TCP/1433, and the second MSSQLSERVER uses a fixed TCP/53200 port from the RPC range.


The way I normally troubleshoot this type of network connectivity is with the SysInternals PortQry.exe utility, which can be downloaded from the Microsoft website. As mentioned above, the dependency on PortQry.exe has been removed but I am leaving this information in the post since there is big value in using PortQry. To begin, run the following command to query the RPC Port Mapper on the remote machine, this will return the ports in the ephemeral range that the machine is actively listening on for RPC services:


At the end of 2003, beginning of 2004 Microsoft released Portqry 2.0 which was an upgrade from the first version. This newer version offers some newer features such as interactive mode, the ability for tracking of all ports associated with any particular process, as well as compatibility for firewall. The utility allows you to select a computer, analyze it and get a report of port status on TCP and/or UDP ports. Most recently upgraded to Version 2, PortQry is a tool that can help you solve network related issues once mastered.


This will connect you to an SMTP relay so that you can run commands to test with. Since many engineers and administrators are very comfortable with telnet, tools like Secure Shell *SSH* and PortQry are used less often. Since telnet can be used in the testing and troubleshooting of ports and connectivity, why would you want to use anything else? The telnet utility has its limitations for port testing, that's why.


One example is that it cannot determine whether a port is being filtered, which is very common these days with the amount of Internet facing routers out there "basically" filtering, and the plethora of firewalls out there screening ports. Home PCs have the ability to filter ports. Most major operating systems have had this functionality for a long time. A tool like Telnet is also unable to test UDP traffic. In Microsoft based networks, (or just about any network today), you will want to be able to work with UDP based protocols like LDAP or RPC. Most of the NETBIOS protocol structure uses UDP. In the rest of this article, we will be using Microsoft Exchange Server (and SMTP) as the example.


So, where does PortQry.exe come in? PortQry is nothing more than a tool developed to aid in the troubleshooting of helping solve connectivity issues by allowing for the scanning of ports in a better way. So, let's use these next two articles as a way to master the use of the tool. We will look at it in such a way that you suddenly integrate it into your troubleshooting tool belt to help solve some issues you may come across in the future. Let's get PortQry and then take a close look at using PortQry.


There is also an Interactive Mode option with the following commands and switches. You can use PortQry to query ports from the command line in a command prompt (cmd.exe) window which is what we will learn about next in this article. Before we do, you should be aware of interactive mode. This mode will allow you to deal with another common issue that we have to deal with, which is "typing commands a million times."


In this article we covered the use of PortQry, a Microsoft developed tool that can help you troubleshoot connectivity problems that you may encounter, much like the email issue shown in this article. PortQry is a great little tool to have in your tool belt when you need to verify if a port is open, closed, or being filtered somehow. In the final part of this series, we will look at how to use PortQry in more depth by scanning other types of systems with it. Stay tuned!


querying...UDP port 53 (domain service): LISTENING or FILTEREDSending DNS query to UDP port 53...DNS query timed outportqry.exe -n IPaddress -e 53 -p UDP exits with return code 0x00000002.


To verify if port 3306 is open, you can use NetStat, CurrPorts, or PortQry.We recommend NetStat, as you won't have to download new software for this. Run the Command Prompt as administrator. Type the command: netstat -ab and hit Enter. Wait for the results to load. Port names will be listed next to the local IP address. Just look for port 3306. You can press Ctrl + F and type 3306 in the word box to search for it. If the port is open, it will show in the results as LISTENING.To check if port 3306 is open via CurrPorts, just sort by Local Port, then find port 3306. If the port is available, it will show in the list.To use PortQry.exe to find port 3306, use the Command Prompt. Type -e [3306], then press Enter." } }, "@type": "Question", "name": "What are Predefined Services in PortQueryUI?", "acceptedAnswer": "@type": "Answer", "text": "Predefined Services offers details on a small handful of predefined services such as Domains and Trusts, Networking, Exchange Server, etc. The option queries all required ports for the specified services and displays them in the window of the UI.For those who don't know where Predefined Services resides, it is directly under the Help tab and in the UI. Both serve different needs. The Help tab option immediately displays all predefined services without testing any ports. It is a quick reference to each port name, value, and protocol used for each listed service.The UI option lets you specify what service you want to view and see port statuses." ] } BODY .fancybox-containerz-index:200000BODY .fancybox-is-open .fancybox-bgopacity:0.87BODY .fancybox-bg background-color:#0f0f11BODY .fancybox-thumbs background-color:#ffffff "@context": " ", "@type": "BreadcrumbList", "itemListElement": [ "@type": "ListItem", "position": 1, "item": "@id": " ", "name": "Internet" , "@type": "ListItem", "position": 2, "item": "@id": " ", "name": "Networking" ] "@context": " ", "@type": "Article", "mainEntityOfPage": "@type": "WebPage", "@id": " -to-check-which-ports-open-windows-10-pc/" , "headline": "How to Check Which Ports Are Open on a Windows 10 PC", "image": [ " -content/uploads/2021/02/How-to-Check-Which-Ports-Are-Open-on-a-Windows-10-PC.png?resize=586%2C328&ssl=1", " -content/uploads/2021/02/How-to-Check-Which-Ports-Are-Open-on-a-Windows-10-PC.png?resize=586%2C328&ssl=1", " -content/uploads/2021/02/How-to-Check-Which-Ports-Are-Open-on-a-Windows-10-PC.png?resize=586%2C328&ssl=1", " -content/uploads/2021/02/How-to-Check-Which-Ports-Are-Open-on-a-Windows-10-PC.png?fit=586%2C328&ssl=1", " -content/uploads/2021/02/1-86.png", " -content/uploads/2021/02/2-91.png", " -content/uploads/2021/02/3-82.png", " -content/uploads/2021/02/4-74.png", " -content/uploads/2021/02/1-86.png", " -content/uploads/2021/02/Screenshot_2-52.png", " -content/uploads/2021/02/Screenshot_3-48.png", " -content/uploads/2021/02/Screenshot_4-39.png", " -content/uploads/2021/02/Screenshot_8-16.png", " -content/uploads/2021/02/Screenshot_5-28.png", " -content/uploads/2021/02/Screenshot_7-20.png", " -content/uploads/2021/12/NirSoft-CurrPorts-Download-Links.png", " -content/uploads/2021/02/Screenshot_9-11.png", " -content/uploads/2021/02/Screenshot_10-10.png", " -content/uploads/2021/02/Screenshot_11-9.png", " -content/uploads/2021/02/Screenshot_12-8.png" ], "datePublished": "2021-02-19T00:00:00+00:00", "dateModified": "2022-07-14T07:43:08-06:00", "author": "@type": "Person", "name": "Lee Stanton" , "publisher": "@type": "Organization", "name": "Alphr", "logo": "@type": "ImageObject", "url": " -content/themes/alphr/images/logo_new.svg" , "description": "Maybe you're troubleshooting a network connectivity issue for a specific program, and you need to check whether its port access is open. What if you need to confirm that your NAS device can communicate with your Windows 10 PC?" var ajaxurl = ' -admin/admin-ajax.php'; window.adsLoaded = false; var freestar = freestar ; freestar.queue = freestar.queue []; freestar.config = freestar.config ; freestar.config.enabled_slots = []; freestar.initCallback = function () if (typeof window.initAds !== "undefined") window.initAds(); else window.adsLoaded = true; (freestar.config.enabled_slots.length === 0) ? freestar.initCallbackCalled = false : freestar.newAdSlots(freestar.config.enabled_slots) GamingXboxNintendoPlayStationTwitchDiscordMinecraftSteamPC & MobileAndroidiPhoneChromebookWindowsMacGoogle SheetsZoomGoogle MeetGoogle PhotosMicrosoft TeamsZohoSocial MediaFacebookInstagramTikTokTwitterSnapChatWhatsAppTelegramMessengerInternetVPNsAlexaGoogle DriveGoogle PhotosiCloudPaypalNotionEntertainmentChromecastFire TVsRokuNetflixSpotifyKodiDisney+GadgetsSmart HomeEchoGoogle HomeiPadKindle FireVizio TVsSamsung TVsVPNsKodiXboxOn a RouterAndroidFirestickSubscribe UsSubscribeGamingXboxNintendoPlayStationTwitchDiscordMinecraftSteamPC & MobileAndroidiPhoneChromebookWindowsMacGoogle SheetsZoomGoogle MeetGoogle PhotosMicrosoft TeamsZohoSocial MediaFacebookInstagramTikTokTwitterSnapChatWhatsAppTelegramMessengerInternetVPNsAlexaGoogle DriveGoogle PhotosiCloudPaypalNotionEntertainmentChromecastFire TVsRokuNetflixSpotifyKodiDisney+GadgetsSmart HomeEchoGoogle HomeiPadKindle FireVizio TVsSamsung TVsVPNsKodiXboxOn a RouterAndroidFirestickSearchHomeInternet Networking How to Check Which Ports Are Open on a Windows 10 PC Lee StantonRead moreJuly 14, 2022 2ff7e9595c


 
 
 

Recent Posts

See All
Itch.io apk baixar

O que é itch.io e por que você deve baixá-lo Se você é fã de jogos indie, provavelmente já ouviu falar , uma plataforma que permite...

 
 
 

Comments


!
Widget Didn’t Load
Check your internet and refresh this page.
If that doesn’t work, contact us.

© 2023 by Burger Corner. Proudly created with Wix.com

bottom of page