Think Like a Computer
No ads, no affiliate links, no software recommendations you did not ask for.

ERR_CONNECTION_TIMED_OUT: No Answer, Not a Refusal

ERR_CONNECTION_TIMED_OUT means the connection attempt got no reply at all. How to tell it from a refusal, test the port with Test-NetConnection, and find the drop.

ERR_CONNECTION_TIMED_OUT is the browser’s report that it sent a connection attempt and waited for a reply that never came. The page shows “This site can’t be reached” and “The connection has timed out” or “This site took too long to respond.” The distinction that matters is between a timeout and a refusal. A refusal means something answered and said no. A timeout means nothing answered at all. The packet left the machine and was either dropped somewhere along the path or discarded by a firewall configured to drop rather than reject. Finding the point where the answer stops is the whole job.

Timeout, refusal and name failure are three different results

A name failure happens before any connection is attempted: the DNS query returns no address, and the browser reports it as a different error. That case belongs to the name resolution path, not this one. A refusal happens after the name resolves and the TCP handshake reaches a host that is listening on no port at that address, or has been told to reject. The host sends a reset, and the browser fails immediately rather than waiting. A timeout is the absence of either answer. The browser waits out its own timer, which is why the error takes seconds to appear rather than returning at once.

That delay is the diagnostic clue. If the error appears after a wait, the path is being silently dropped. If it appears instantly, the name did not resolve or the host refused. Confirm which one before changing anything.

Confirm the address resolves before blaming the connection

The first split is between name resolution and connection. Resolve the name directly:

nslookup example.com

The output shows the server used and the address or addresses returned. If it returns an address, the name path is working and the failure is downstream. If it returns no address, the problem is name resolution and the timeout is a symptom of a lookup that never completed. The DNS probe error page covers that case in detail.

Test the port directly instead of the page

A browser request to a web address goes to port 443 for HTTPS or port 80 for HTTP. Testing the host alone does not prove the port is reachable, because a host can answer a ping while the port is filtered. Test the port:

Test-NetConnection example.com -Port 443

The output includes a line for the TCP test. TcpTestSucceeded : True means the handshake completed and the port is reachable from this machine. False with no further detail means the attempt did not complete within the test’s timeout, which matches what the browser saw. Run the same test against port 80 to see whether only one port is affected. If port 443 fails and port 80 succeeds, the drop is specific to that port, which points at a firewall rule rather than a dead route.

To see where the path stops before the port test, trace the route:

tracert example.com

The output lists each hop with its round-trip times. Hops that show * * * did not answer the trace, which is normal for some routers and does not by itself prove a fault. What matters is where the listing stops responding and whether the last responding hop is inside the local network, at the ISP boundary, or beyond it. A trace that reaches the destination host but still fails the port test moves the question to the host’s own filtering.

Firewalls that drop rather than reject

A firewall has two ways to refuse traffic. It can reject, sending a reset or an ICMP unreachable message, which produces an immediate refusal in the browser. Or it can drop, discarding the packet with no reply, which produces exactly this timeout. Windows Firewall and most network appliances default to drop for inbound traffic that no rule permits, because a silent drop tells a scanner less than a rejection does. The timeout is therefore the expected result of a rule that does not permit the connection, not evidence of a broken network.

On the local machine, check whether a rule is blocking outbound traffic to that port or address. Windows Firewall rules can be listed with:

Get-NetFirewallRule -Direction Outbound -Enabled True

The output lists rule names, display names and actions. A block rule that matches the destination address or port explains the timeout. Do not disable the firewall wholesale to test this; disable or narrow the single rule that matches, and restore it afterwards. If the machine is on a managed network, the rule may be applied by policy and the local change will not persist.

Proxy settings and hosts file entries

A proxy that is configured but not reachable produces a timeout, because the browser sends the request to the proxy address and waits for a reply that never comes. Check the system proxy configuration:

netsh winhttp show proxy

The output shows whether a proxy is configured for the system and, if so, its address. A direct-connection result means no system proxy is set. Browsers can also carry their own proxy settings separate from the system ones, so check the browser’s own connection settings as well. If a proxy address is set and that host is not answering, the timeout is explained and the fix is to correct or remove the proxy setting, not to repair the network.

A hosts file entry can also produce this result by sending the name to an address that does not answer. The hosts file is a plain text file in the system directory, and an entry there overrides DNS. Inspect it for the name in question; an entry pointing at an address that is not listening will time out. Remove only the entry that was added deliberately, and keep a copy of the file before editing it.

Routing and NAT: where the answer usually stops

When the local tests pass and the port still times out, the drop is on the path. Two mechanisms account for most of these cases.

Routing decides which interface a packet leaves by and whether a return path exists. A machine with more than one active interface, a VPN adapter, or a stale route can send the connection attempt out of an interface the answer cannot return through. The route table shows the decision:

route print

The output lists the destination networks, their masks, gateways and interface addresses, and a metric for each. The default route, destination 0.0.0.0, is the one used for addresses not otherwise listed. If the default route points at a gateway that is not the one currently connected, or if a VPN interface carries a lower metric than the physical one, traffic leaves by the wrong path and the reply never arrives. The routing page covers how the metric and the default route interact; the point here is that a wrong default route produces a timeout, not a refusal.

NAT is the other common mechanism. A router performing network address translation rewrites the source address of outgoing connections and tracks the mapping so replies can be returned. If the mapping is not created, because the packet is dropped before translation, or the translation table is full, or the router’s rule set does not permit that port, the reply never comes back and the client times out. Port forwarding on the router is the usual place this shows up for inbound connections to a service on the local network. The NAT page explains the mapping and why a missing or incomplete rule produces silence rather than an error.

What the reader cannot fix

Some of this path belongs to someone else. If the trace stops at the ISP’s first router and never reaches the destination, the drop is on the carrier’s side. If the destination is reachable from another network but not from this one, the filtering is on this network’s edge, which may be a managed firewall the reader does not administer. If the site answers for other users and not for this connection, the block is at the destination or on the path between, and no local setting will change it. In those cases the correct action is to report the destination address and port, the time, and the trace output to the network administrator or the ISP. Changing local settings will not move a drop that happens beyond the local gateway.

Order of checks

Work from the cheapest and least destructive check outward. Resolve the name first, then test the port directly, then trace the path, then inspect firewall rules, proxy settings and the hosts file, then examine the route table and the router’s NAT rules. Each step rules out everything before it. Do not reset the network stack or reinstall adapters until the port test and the trace have shown where the silence begins; a reset discards configuration that the evidence has not yet implicated.

Common questions

What does ERR_CONNECTION_TIMED_OUT actually mean?

The browser sent a connection attempt and received no reply before its timer expired. Nothing refused the connection and nothing resolved the name incorrectly; the packets were dropped somewhere on the path or by a firewall that discards rather than rejects.

How do I tell a timeout from a refused connection?

A refusal returns almost instantly because the host answered with a reset. A timeout takes several seconds because the browser waits out its timer. If the error appears immediately, the cause is a refusal or a name failure, not a timeout.

Why does Test-NetConnection show the host reachable but the port fails?

The host answers a ping or a name lookup, but the specific port is filtered or nothing is listening on it. Test the port explicitly with Test-NetConnection hostname -Port 443; a false TCP result with the host reachable points at port-level filtering rather than a dead route.

Can a proxy cause this error?

Yes. If a proxy is configured and the proxy host is not answering, the browser waits for the proxy and times out. Check the system proxy with netsh winhttp show proxy and the browser's own proxy settings, and correct or remove a proxy address that is not reachable.

When is the problem not on my machine?

When the trace stops at the ISP's router and never reaches the destination, or when the site works from another network but not this one. In those cases the drop is on the carrier's or the destination's equipment, and the fix is to report the address, port and trace output to the administrator or ISP.

Read next