Diagnostics · 5 min read

Port check: what open, refused and filtered TCP results mean.

Test one TCP port and learn what open, refused and filtered really mean.

What this tool tells you

A port number points at one service on a machine, and a TCP connect attempt tells you whether that service is reachable from where you sit. The interesting part is the difference between a refusal and a silence. This check has no browser tool, so you run it from a terminal on your own machine.

Try it in SiteTrace

  1. Decide which host and port you have the right to test, and write them down before you open a terminal.
  2. Run the connect command for that port and read the single line it prints back.
  3. Separate the three outcomes: a completed handshake, an active refusal, or a timeout with no answer.
  4. If the port answers, move on to the protocol above it, since an open port can still refuse to speak HTTP or TLS.
  5. Repeat from a second network if the first result is a timeout, since a local firewall can block the probe before it leaves.

There is no in-browser tool for this diagnostic — your computer or network has to perform it. The Mac and Windows commands below show how to run it yourself.

What your result looks like

Port Check input settings and example results in SiteTrace
SiteTrace port check · example output. Select the screenshot to view it at full size.

How to read the information

Connection refused
The host answered with a rejection, which normally means nothing is listening on that port.
Connection timed out
No answer arrived before the deadline. A firewall usually drops the probe instead of refusing it.
Handshake succeeded
The three-way TCP exchange completed, so a process on the host accepted the connection.
Remote address
The address the probe was sent to, which is the host you typed rather than the machine you ran it on.
Source address
The local interface the probe left from. On a laptop with several networks this can change the result.

What the example means

A refused port is a closed door and a timed out port is a wall. Both mean the service is not usable from your machine, but they point at different causes and different fixes. An open port only proves that something accepted a connection, never that the application behind it works.

On your Mac or Windows PC

Mac instructions

nc ships with macOS and tests a single TCP port without scanning the rest of the host. Add -v so the result is spelled out, and -w 3 so an unresponsive port gives up in three seconds.

Terminal
nc -zv -w 3 example.com 443

A check from your computer reflects your own connection. It may differ from a remote test or the mockup shown here.

Keep this in mind

Only test machines you own or have permission to probe. These commands cover TCP, and a UDP service stays invisible to them. A timeout can also come from your own firewall or the network in between, so it never proves the host is down.