TCP Monitor

TCP monitor for ports and network services

Uptinio opens a TCP connection to a host and port on a schedule and alerts you when the connection fails. Use it for databases, mail servers, SSH, message brokers, and any custom service that listens on a TCP port.

What a TCP port monitor checks

A TCP monitor checks whether a specific port on a host or IP address is open and accepting connections. It answers one question: can a client connect to this service right now?

When the connection is refused or times out, Uptinio opens an incident and notifies the integrations attached to the monitor.

  • Target is a hostname or IP address plus a port from 1 to 65535
  • Configurable check interval (in minutes) and request timeout (1 to 60 seconds)
  • Choose which check regions attempt the connection
  • TCP only. UDP ports are not supported

Example TCP monitor configuration

check_type
tcp
url
db.example.com
port
5432
minutes_interval
5
request_timeout
10

Field names match the monitors API.

The problem: HTTP checks do not cover non-HTTP services

Databases, mail servers, and SSH do not answer HTTP requests, so a website monitor tells you nothing about them. A closed firewall rule, a crashed daemon, or a service bound to the wrong interface leaves the port unreachable while the web tier keeps responding.

A TCP check gives you a simple, protocol-agnostic signal: the port accepts connections or it does not.

Who needs TCP port monitoring

Sysadmins and SREs

Watch the ports your infrastructure depends on, such as SSH, load balancer listeners, and internal service ports reachable from the internet.

Backend teams

Confirm that PostgreSQL, MySQL, Redis, or a message broker is accepting connections on its port.

Teams running their own mail

Monitor SMTP, IMAP, and POP3 ports to catch a mail service going down before users report it.

How TCP monitoring works in Uptinio

  1. 1

    Create a TCP monitor

    Enter the hostname or IP, the port, an interval, and a timeout. No URL or HTTP settings are involved.

  2. 2

    Uptinio attempts a connection on schedule

    Each check tries to open a TCP connection to the host and port from the regions you selected.

  3. 3

    Failure opens an incident

    A refused connection or a timeout is recorded as a failed check and opens an incident.

  4. 4

    Alerts reach your team

    Notifications go to attached integrations such as email, Slack, PagerDuty, Opsgenie, or webhooks.

Create a TCP monitor with the API

curl -X POST https://app.uptinio.com/api/v1/network_monitors \
  -H "Authorization: Bearer YOUR_PROJECT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "network_monitor": {
      "name": "Database Server",
      "url": "db.example.com",
      "check_type": "tcp",
      "port": 5432,
      "minutes_interval": 5,
      "request_timeout": 10
    }
  }'

TCP monitoring use cases

Database listeners

Port 5432 (PostgreSQL), 3306 (MySQL), or 6379 (Redis) accepting connections on a public or exposed host.

Mail services

SMTP (25), IMAP (143), and POP3 (110) ports on your mail server.

SSH access

Port 22 reachable on bastion hosts and servers you administer remotely.

Custom TCP services

Game servers, brokers, proxies, or any in-house daemon that listens on a TCP port.

What a TCP check does and does not tell you

It confirms the port accepts connections

The check verifies the TCP connection. It does not speak the application protocol, so it cannot confirm that a query succeeds or that a login works.

TCP only, no UDP

Uptinio does not monitor UDP ports. For HTTP services, use an HTTP monitor; for host reachability, use ping.

Website monitor

The target must be reachable from the check regions

Services on a private network are not reachable from outside. Report their status with a heartbeat from inside the network, or track the host itself with the Linux server agent.

Cron and heartbeat monitor

Host-level reachability

To check whether a host answers ICMP at all, use a ping monitor.

Ping monitor

How the TCP monitor fits in Uptinio

TCP monitors share incidents, notifications, and status pages with every other Uptinio monitor type. A common setup is an HTTP monitor on your application, a TCP monitor on its database or broker port, and a ping monitor on the host.

Documentation

TCP monitor parameters and API examples are in the Uptinio docs.

Frequently asked questions

Does Uptinio support UDP port monitoring?

No. The port monitor is TCP only.

Can I monitor a database with a TCP monitor?

You can monitor that the database port accepts connections, provided the host is reachable from the check regions. The check does not run queries.

What port range is supported?

Any TCP port from 1 to 65535.

Start monitoring your TCP ports

Start on the Free plan: 10 web monitors with a 5-minute minimum interval. No credit card required.