/
How to tell if a port is open

How to tell if a port is open

To determine if a port such as 80 or 5432 has been opened on a server, do the following on the machine trying to connect to the server.

Instructions

1. Download the PortQry utility (to download, for information)

2. Install the PortQry utility.   Note, the example below assumes it will be installed to C:\PortQryV2 but it does not have to be.

3. Open a command line prompt (i.e. Windows > Run > cmd)

4. Type the following command replacing <server-name or ip> with the server name or the ip address and <port> with the port number. 

Note, if portqry was not installed in the C:\PortQryV2 directory, then change that to the installation location.

c:\PortQryV2\portqry -n <server-name or ip> -p both -e <port>

Ex:

c:\PortQryV2\portqry -n 192.168.1.100 -p both -e 5432

If the port is open, it should be listed with status of LISTENING.  For example:

TCP port 80 (http service): LISTENING

The possible status values (after the colon) are:

  • Listening = the server is listening on the specified port (i.e. it is open)
  • Filtered = likely indicates a firewall or software issue blocking the port
  • Not Listening = it didn't receive a response at all





Related content

How to use PortQry to test access to ports on the server
How to use PortQry to test access to ports on the server
More like this
What ports are used in communication on a Windows Network?
What ports are used in communication on a Windows Network?
More like this
Test Sending Email From Command Line
Test Sending Email From Command Line
More like this
How to Browse or Explore a Directory Server
How to Browse or Explore a Directory Server
More like this
Can only access AdamsWeb by a single specific name
Can only access AdamsWeb by a single specific name
More like this
Can't run dowloaded exe on server
Can't run dowloaded exe on server
More like this

© 2023 Foray, LLC - All Rights Reserved