Home arrow Support arrow Port Query tool
Port Query UI tool PDF Print E-mail
Written by Admin   
Monday, 27 July 2009

Port Query UI tool

How can I see if my ISP or local LAN blocks VPN ports?

 

Microsoft Page

Download Link

For PPTP service:(1723)

 

 

=============================================

 Starting portqry.exe -n usa-server.selfip.com -e 1723 -p TCP ...


Querying target system called:

 usa-server.selfip.com

Attempting to resolve name to IP address...

Name resolved to 209.190.26.154

querying...

TCP port 1723 (pptp service): LISTENING
portqry.exe -n usa-server.selfip.com -e 1723 -p TCP exits with return code 0x00000000.

 

For L2TP service:(1701)

 =============================================

 Starting portqry.exe -n usa-server.selfip.com -e 1701 -p UDP ...


Querying target system called:

 usa-server.selfip.com

Attempting to resolve name to IP address...


Name resolved to 209.190.26.154

querying...

UDP port 1701 (l2tp service): LISTENING or FILTERED

Sending L2TP query to UDP port 1701...

UDP port 1701 (l2tp service): FILTERED
portqry.exe -n usa-server.selfip.com -e 1701 -p UDP exits with return code 0x00000002.

For OpenVPN service do the same just change the port number to 1194with UDP type.

 If you check our .ovpn config file you will find its port number

 remote usa-server.selfip.com 1194

and UDP or tcp type:
# Are we connecting to a TCP or
# UDP server?  Use the same setting as
# on the server.
;proto tcp
proto udp

 

The following pic shows all L2TP PPTP and OpenVPN ports listening in our server by "netstat -aon" command.

Port Query UI tool (portqueryui.exe) is a tool to query open ports on a machine. This tool makes use of command line version port query tool (portqry.exe). The UI provides the following functionalities:

 
The Port Query UI has following functionalities:
   1. Following "Enter destination IP or FQDN to query:", an edit box needs the user to specify the IP address or
       FDQN name of the destination to query port status.

   2. The end user is able to choose Query type:
        - Predefined services type, which includes "Domains and Trusts", "DNS Queries", "NetBIOS
          communication", "IPSEC", "Networking", "SQL Service", "WEB Service", "Exchange Server",
          "Netmeeting", and other services. Each service category includes a set of service and port info.
          Please refer to config.xml for detail port and protocal info for each service category. The XML
          file config.xml has format
              <!--
               Format
                <Services>
                   <Service Name="Service Name">
                      <Port Name="service bound to the port" Value="Port number and/or port ranges separated
                         by commas" Protocol="TCP|UDP|Both"/>
                   </Service>
                </Services>
              -->
            * The user can also add port info to config.xml as long as it follows the format.
            * Service name will be shown in the box following "Service to query:".
            * The end user can check Predefined services by opening Help -> Predefined Services...
        - Manually input query port.  The end user can manually enter port number and/or port ranges separated by
          commas to query. For port range, the end port should be equal or greater than the start port. Valid port
          should be in range 1-65535. For example: 80,53,1024-1350.
        - The end user needs to choose protocol (TCP or UDP or Both) to query.

   3. Allow the end user to import a list of ports to test from an XML file with the same format as config.xml:
       File->Open Config…

   4. After inputting the destination info and choosing query type with proper port info, click "Query" button
       to start query. Query output will be displayed in the "Query Result" box.

   5. During query, there is the process bar to indicate the query status.

   6. During query, if the end user wants to cancel query process, click "Cancel" button to cancel query.

   7. The user has the option to save the query result to a log file: File -> Save Result…

   8. Please refer to Portqry.doc for detail command line tool info.

Last Updated ( Monday, 27 July 2009 )
 
Next >