redttps

PortQry

Description

PortQry is a Microsoft command-line tool used to troubleshoot TCP/IP connectivity by checking the status of ports on local or remote systems. It helps administrators determine whether a port is listening, filtered, or not listening, which is very useful for diagnosing network issues, firewall rules, or service availability

Useful PortQry Commands

  1. Check a specific port on a remote host
  2. portqry -n 'IP' -p tcp -e 80
  3. Scan a range of ports
  4. portqry -n 'IP' -p tcp -r 20:80
    
  5. Scan multiple specific ports
  6. portqry -n 'IP' -p udp -o 53,161,389