When the client cannot establish a connection with the server
Network connection errors occur when the client (browser, monitoring tool, application) cannot establish communication with the server. Unlike HTTP errors (400, 500) which indicate the server responded with an error, a connection error means no communication could be established at all.
These errors can occur at different levels of the network stack: DNS resolution (the domain doesn't translate to IP), TCP establishment (the server refuses or doesn't respond), or TLS layer (certificate problem). Each level generates distinct error messages that guide the diagnosis.
For an online service, a connection error is critical because it completely prevents access. MoniTao monitors the connectivity of your services and alerts you immediately when a connection error is detected, specifying the error type to speed up diagnosis.
Each error type indicates a problem at a different connection level:
Here are the most frequent causes for each stack level:
A methodical diagnosis quickly identifies the failing layer:
Here are the essential commands to diagnose connection errors:
# 1. Check DNS resolution
dig example.com +short
nslookup example.com 8.8.8.8
# 2. Test ICMP connectivity (ping)
ping -c 4 example.com
ping -c 4 93.184.216.34 # Direct IP
# 3. Trace network path
traceroute example.com
mtr example.com # (more detailed)
# 4. Test TCP port
nc -zv example.com 80
nc -zv example.com 443
telnet example.com 80
# 5. Test full HTTP
curl -v --connect-timeout 5 https://example.com
# 6. Check what's listening on the server
ss -tlnp | grep -E ":80|:443"
netstat -tlnp | grep -E ":80|:443"
These commands walk through network layers: DNS → ICMP → TCP → HTTP. Identify at which level the connection fails to guide your diagnosis.
MoniTao monitors connectivity and precisely informs you of the error type:
Each error has a signature: DNS_PROBE indicates a DNS problem, CONNECTION_REFUSED means the server exists but refuses, TIMED_OUT means no response at all. MoniTao displays the precise type.
Intermittent errors may indicate: server overloaded at times, network issue between monitoring and server, failover between servers, or rate-limiting-based firewall rule.
Possibilities: your browser has a DNS cache, the server has geo-restriction rules, or your ISP routes differently. Monitoring from a datacenter may have a different network path.
Essential commands: dig/nslookup (DNS), ping (ICMP), nc/telnet (TCP), curl -v (full HTTP). Each command tests a different layer.
Ping uses ICMP, HTTP uses TCP on port 80/443. The server may respond to ping but have its web server stopped, or a firewall blocking HTTP port but not ICMP.
Configure MoniTao with short intervals (1 minute) and immediate alerts. Connection errors are detected in seconds and the alert is sent instantly.
A connection error completely prevents access to your service. Unlike HTTP errors where the server responds with an error code, here no communication is possible. It's one of the most critical situations for an online service.
MoniTao continuously monitors the connectivity of your services and alerts you immediately, specifying the error type. This information lets you know instantly where to look: DNS, network, web server, or firewall. Combined with methodical diagnosis, you can resolve most connection problems in minutes.
Start free, no credit card required.