I have Windows 7 and a local website on Apache / PHP. I have the most recent versions installed.
I have some PCs connected into a local network by the router, which assigns local IP addresses like
192.168.1.x to the computers.
When I access it from my own PC at
http://127.0.0.1/ it loads instantly.
But if I access it by a local IP address, like
http://192.168.1.120/, it connects significantly more slowly, and may even take up to 20 secs.
Both the server itself and local PCs show this same behavior (are equally slow) when accessing the site via a local IP address.
So any ideas what's wrong with it?
Well, thanks to the suggestion I've checked my ServerName var in appache. After setting it to 192.168.1.120 (the address by which I actually make my requests) I noticed an improvement. It would connect me almost instantly, but if I'm inactive for about a minute or less, it gets me waiting again to connect to my local site for about 10 secs.
I still don't know what is be causing it, and if you have some ideas you are welcome to contribute. :-)