HTTP (random?) connection timeout with Windows 7

Posted on

HTTP (random?) connection timeout with Windows 7 – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, apache-2.2, windows, http, timeout.


  • Reinstalled Windows 7
  • Installed Windows 8
  • Various Apache tweaks (AcceptFilter http none…)
  • Installed Windows XP

Some Wireshark log

1   0.000000000 HonHaiPr_0b:36:ae   D-LinkIn_64:ca:28   ARP 42  Who has  Tell
2   0.001844000 D-LinkIn_64:ca:28   HonHaiPr_0b:36:ae   ARP 42 is at 28:10:7b:64:ca:28

Works with XP, too bad PHP is dropping support.

Question: Should I throw router out of the window? I can’t blame Windows (deep in my heart I want to)

I am experiencing (almost) random connection timeouts, with Apache on Windows7, to the extent that I’m afraid to hit F5… I cannot explain when it occurs, because I was unable to find pattern.

enter image description here

Computer that is giving me the troubles is the one that Mario wants to smack.
Here is the fun part, it cannot be accessed from another Windows computer (while timeouts occur), but it can be from the Linux one. After timeout message occurs (about 30s later), it is usually working again, if not, I have to restart Apache.
They are connected wirelessly to a cheap D-Link router, and later via cable.

When everything is functioning:

  • I can access from any computer
  • I can access from outside (internet) via DynDNS
  • I can access network (sharing) without problems
  • I have no headache

When it’s not:

  • I can’t access via HTTP (
  • I can’t access from outside (internet) via DynDNS
  • I can access network (sharing) without problems
  • I can access from Linux computer in network
  • I can access from computer in question (
  • I have a mild headache

What have I tried:

  • Set MTU to 1500 everywhere
  • Updated Apache to 2.4.2 – 32bit
  • Disabled all F!r3w411z
  • Connected computer in question via Ethernet cable (timeouts are less frequent)


I do have 2-3 vhosts defined like this:

Listen *:1337

<VirtualHost *:1337>
ServerName l337
DocumentRoot C:/git/1337
    <Directory "C:/git/1337">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all

If question is too localized please do tell.
Something similar:

Thank you for your time.

P.S. I have tried turning it off and on again.

Solution :

The answer is:

enter image description here

P.S. don’t expect much from cheap DLink (or any other probably) router.

If you are attempting to connect using an ip address and it is working all the time from linux (I am a windows admin so I hate to say) it is most likely windows, since all the machines with issues are running windows.

Are your pings completing to and from all the windows machines when things are trying to give you a headache?

Does anything else try to run on port 80 before things go wrong? (Skype, IIS, SQL)

Have you tried setting Apache to use port 8080?

If you really think that the router is the issue, try this:

  1. take it off of the internet
  2. replace the router (temporarily) with a simple hub or switch
  3. try connecting

It is possible that the router is the issue, but cheap does not mean “doesn’t work”. Not every network needs the “bigger better faster more” hardware solution.

It seems that you may be getting these errors based on your apache configuration found under apache/Conf/httpd.conf.

Leave a Reply

Your email address will not be published. Required fields are marked *