Error Codes Wiki

Linux Connection Timed Out

Warningnetwork

About Linux Connection Timed Out

Linux "Connection timed out" means the TCP connection attempt did not receive a response within the timeout period. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.

Here are the key things to understand: errno 110 (ETIMEDOUT) — no response from remote host. Packets are being dropped (not rejected). Usually indicates firewall DROP rule or routing issue. Default timeout is typically 20-120 seconds. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.

The most common reasons this occurs include: Firewall DROP rule silently discarding packets. Remote host is down or unreachable. Network routing issue between source and destination. Incorrect IP address or port number. Identifying the root cause is the first step toward finding the right solution.

To resolve this, follow these recommended steps: Test connectivity: ping remote_host. Test specific port: telnet host port or nc -zv host port. Trace route: traceroute host to find where packets stop. Check remote firewall and security group rules. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.

This article is part of our Linux Error Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.

Quick Answer

What is the difference between refused and timed out?

Refused = host is up but port is closed. Timed out = packets are being dropped (host down or firewall).

Overview

Linux "Connection timed out" means the TCP connection attempt did not receive a response within the timeout period.

Key Details

  • errno 110 (ETIMEDOUT) — no response from remote host
  • Packets are being dropped (not rejected)
  • Usually indicates firewall DROP rule or routing issue
  • Default timeout is typically 20-120 seconds

Common Causes

  • Firewall DROP rule silently discarding packets
  • Remote host is down or unreachable
  • Network routing issue between source and destination
  • Incorrect IP address or port number

Steps

  1. 1Test connectivity: ping remote_host
  2. 2Test specific port: telnet host port or nc -zv host port
  3. 3Trace route: traceroute host to find where packets stop
  4. 4Check remote firewall and security group rules

Tags

linuxnetworkconnection timed outtroubleshootingfix

More in Network

Frequently Asked Questions

Refused = host is up but port is closed. Timed out = packets are being dropped (host down or firewall).