Port Query 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 you choose, helping you to check which ones are active and which are firewalled.