Tuesday, October 7, 2014

query TCP UDP ports in Windows

Portqry.exe is a command-line utility that you can use to help troubleshoot TCP/IP connectivity issues

The utility reports the port status of TCP and UDP ports on a computer that you select.

Portqry.exe can query a single port, an ordered list of ports, or a sequential range of ports.

it's a great tool to have when you need to query UDP ports (that TELNET cannot do)

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.


·    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.

Syntax:
·   -n [server]—IP address or name of server to query
·   -p [protocol]—TCP or UDP or BOTH (default is TCP)
·   -e [endpoint]—single port to query (valid range: 1-65535)
·   -r [endpoint range]—range of ports to query (start:end)
·   -o [endpoint order]—range of ports to query in an order (x,y,z)
·   -l [logfile]—name of log file to create
·   -s—"slow link delay" waits longer for UDP replies from remote systems
·   -I—bypasses default IP address-to-name lookup; ignored unless an IP address is specified after -n
·  -q—"quiet" operation runs with no output

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



Download link: http://www.microsoft.com/en-us/download/confirmation.aspx?id=17148

1 comment:

  1. In order to make a caller picture full screen, you may download any app from Google PlayStore. Among many apps, Ultimate Caller Screen is a great app that you can download in your Android Phone

    Your Android phone comes with a huge screen and you love to see people when they call you. Hence, you must come to know how to make caller picture full screen on android 10, and we are going to let you know every detail in this manner.

    Firstly, we need to say that the contact photo comes as one-third of its fullest size, and it is set on by default. So, the rest of the two-third portion seems wastage.

    ReplyDelete