---
agent:
  instructions: "Search Greenbar's public pages and docs by keyword. A result has every word you give. Results are returned in Markdown."
  endpoint: "https://usegreenbar.com/.well-known/search?q={query}"
  method: "GET"
---

# TCP port monitors

> Check that a TCP port accepts a connection.

## What it checks

A TCP port monitor opens a connection to a host and port and then closes it. Nothing is sent. It is up when the port accepts the connection within the timeout, and down when it doesn't.

## Add a monitor

1. Choose Add monitor, and choose TCP port.
2. Enter the host and the port. The port is required.
3. Set the interval and the timeout, then choose Create monitor.

![The Add monitor form with Type set to TCP port, a host and a port filled in, Interval, Timeout and Create monitor.](https://usegreenbar.com/docs/screenshots/monitor-add-tcp-light.png?v=437c505d46cd)

*A TCP port monitor. The check sends nothing.*

**Fields on a TCP port monitor**

| Field | What it does |
| --- | --- |
| Host | The name to connect to, with no scheme and no path. |
| Port | Required. Anything else is refused: `Port must be 1–65535`. |
| Interval | How often to check: 30 seconds, 1 minute, 5 minutes, 10 minutes, 30 minutes and 1 hour, no faster than your plan allows. |
| Timeout (ms) | How long the connection may take. See Shared settings. |

## When a check fails

**Why a TCP check fails, and what to change**

| What you see | Why | What to change |
| --- | --- | --- |
| No connection | The port refused the connection, or nothing accepted it within the timeout. | Check the service is listening on that port, or raise the timeout. |
| `Could not resolve hostname` | The host name has no address, at save or when the check runs. | Check the spelling of the host name. |
| Refused when you save | A host that is, or resolves to, a private or internal address is refused: `Host must not be a private or internal network address` for an address, `Host resolves to a private or internal network address` for a name. | Use a public host. |

Interval, timeout, pausing and plan limits are on the Shared settings page.
