
HTTP uptime monitoring checks whether a website responds correctly to HTTP/HTTPS requests. But not every service communicates over HTTP. Databases, mail servers, FTP servers, and custom applications listen on non-HTTP ports. Port monitoring checks whether a specific TCP port is open and accepting connections — independent of what protocol runs on it.
Port monitoring works by attempting a TCP connection to a specific host and port combination. If the connection succeeds (the port accepts the connection), the check passes. If it fails (connection refused, timed out, or unreachable), the check fails and triggers an alert.
This is equivalent to running:
telnet yourdomain.com 3306
# or
nc -z yourdomain.com 3306
A successful connection confirms the port is open and the service is listening. It doesn't validate the service's actual behaviour — just that it's accepting connections.
| Service | Default Port | Protocol |
|---|---|---|
| HTTP | 80 | TCP |
| HTTPS | 443 | TCP |
| SSH | 22 | TCP |
| FTP | 21 | TCP |
| SMTP (email) | 25, 587 | TCP |
| IMAP | 143, 993 | TCP |
| MySQL/MariaDB | 3306 | TCP |
| PostgreSQL | 5432 | TCP |
| Redis | 6379 | TCP |
| MongoDB | 27017 | TCP |
| Elasticsearch | 9200 | TCP |
| RabbitMQ | 5672 | TCP |
| Custom APIs | Varies | TCP |
Database monitoring via port is useful when:
Important: Most production databases should NOT be publicly accessible. If your MySQL is behind a VPC, port monitoring from an external service won't work. In that case, monitor the application that connects to the database, and use application-level health checks that test database connectivity.
If you run your own mail server (Postfix, Exim), monitoring SMTP ports (25, 587) confirms email delivery is functioning. A closed SMTP port means emails are not being sent or received.
Port 22 monitoring confirms SSH access to a server is available. Useful for:
Applications that expose custom TCP ports benefit from port monitoring when:
| Aspect | Port Monitoring | HTTP Monitoring |
|---|---|---|
| What it checks | TCP connection accepted | HTTP response (status, content) |
| Application layer | No | Yes |
| Validates response content | No | Yes |
| Works with all services | Yes (any TCP) | HTTPS/HTTP only |
| Depth of check | Shallow | Deep |
HTTP monitoring is more thorough for web applications — it verifies the application is responding correctly, not just that a port is open. A web server with port 80 open might still return 500 errors; HTTP monitoring catches this while port monitoring doesn't.
Use port monitoring for non-HTTP services (databases, mail, SSH), and HTTP monitoring for everything web-based.
Port monitoring from an external service requires the monitored port to be accessible from the internet. This is fine for web ports (80, 443) but should be carefully considered for services like databases.
Never expose database ports to the public internet just to enable port monitoring. Instead:
If you need to monitor a port that shouldn't be publicly accessible, use an agent installed inside your network that can reach the service.
In Domain Monitor, port monitoring is configured alongside HTTP monitors:
Monitor type: Port
Host: yourdomain.com
Port: 3306
Check interval: 5 minutes
Alert channels: Email + Slack
Choose a check interval that makes sense for the service — critical services (mail server) might warrant 1-minute checks; less critical services can use 5 minutes.
For comprehensive coverage of a web server like Nginx or Apache:
The HTTP monitor is your primary check; the port 22 monitor ensures you can get into the server to fix problems if the HTTP check fails.
Set up port monitoring alongside HTTP and SSL checks at Domain Monitor.
Generative AI creates new content — text, images, code, and more. This guide explains how it works, what tools are available, and where it's genuinely useful versus overhyped.
Read moreCursor AI is an AI-powered code editor built on VS Code. Learn what it does, how it works, and whether it's the right tool for your development workflow.
Read moreClaude Opus is Anthropic's most capable AI model, built for complex reasoning and demanding tasks. Learn what it does, how it compares, and when to use it.
Read moreLooking to monitor your website and domains? Join our platform and start today.