5

I've had this happen once before recently on a different site, and I don't know what I did to fix it.

Now my computer will not open any page on stackoverflow.com. When I try, I get the error message:

Gateway Timeout: can't connect to remote host

or

The connection was reset. The connection to the server was reset while the page was loading. The site could be temporarily unavailable or too busy. Try again in a few moments.

This is odd, especially because it doesn't seem to matter what browser I'm using. I'll encounter the error in Firefox, for instance, but then the same thing occurs a few minutes later in Safari. Or Chrome.

Chrome says:

The connection to stackoverflow.com was interrupted

and at the bottom of the dialog:

Error code: ERR_CONNECTION_RESET

When I try to access the site from a different computer, no problem.

I've removed all cookies that I can identify as coming from stackoverflow.com and quit and re-started the browser. No difference.

Ideas?

4
  • I should add that I'm using a MacOS computer with Lion.
    – Chris
    Aug 25, 2014 at 22:57
  • 1
    What if you use a different computer on your network? Does power cycling your router fix it?
    – Jason
    Aug 25, 2014 at 22:57
  • 1
    Could you edit your original question to specify : your OS, what equipment is between your computer and your Internet access, if you use a proxy, if you use any application firewall?
    – dan
    Mar 18, 2015 at 18:30
  • On your Mac, create a new (non admin) account and check if you have the same problem.
    – dan
    Mar 18, 2015 at 18:31

4 Answers 4

1

You might have an entry in your /etc/hosts file preventing you from connecting to stack overflow or you could have a firewall that is preventing you from connecting to stack overflow. You could try

sudo ipfw list

this will print any blocks on the computer

1

It's possible the site is being blocked by some antimalware software, which could be a mistake by a heuristic, a malfunction, or a timeout. I've seen this problem intermittently on apparently random sites with Sophos Home Edition, and it's been reported in their forums.

1

I had the same trouble - reddit and some other sites suddenly became inaccessible.

The provider confirmed there was no blocking business at their end. The solution was to change the DNS server settings to Google's public DNS: 8.8.8.8 and 8.8.4.4. I tried this because there were some odd looking IP's in the service provider's DNS settings. See if it works - update the DNS servers in your settings: system preferences -> Network -> Advanced (after selecting the active network connection) -> DNS tab -> add the two aforementioned IP's for your DNS servers.

2
  • As an aside: did you investigate those odd-looking IP addresses? It might indicate that some malware is trying to route your network to their liking.
    – Arjan
    Jul 28, 2015 at 14:43
  • Yes, indeed, I did! Those were standard IP's for the service provider's DNS.
    – ahron
    Jul 28, 2015 at 14:47
1

The problem could be related to:

  • Firewall rules

    If you've got a firewall installed (such as LittleSnitch), double check its configuration and delete any rules which may blocking the outgoing connections.

    If you're using some corporate network, it could be blocked by the network administrator.

  • Domain Name Servers (DNS) issues

    Double check that you've got the right DNS servers in /etc/resolv.conf and you don't have any hardcoded hostnames in your /etc/hosts.

    Run stackoverflow.com to see if the hostname is translated into the proper IP address.

  • Proxy

    Make sure you don't use any reverse proxies and you've disabled it in your configuration.

  • VPN

    If you're connecting using VPN, try connecting directly.

How to debug? To check for the outgoing traffic, you can use tcpdump command-line tool.

Related posts:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .