Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My project don't need anything from the internet, no JQuery, no twitter, no nothing! and it works perfectly when there's no internet connection at all, and of course when there's an internet connected. The problem is when I am downloading something from the internet my localhost become very slow! any advice other than stop downloading while you are working? I am using: Wamp, windows 7 64bit

share|improve this question

migrated from stackoverflow.com Oct 1 '12 at 1:50

This question came from our site for professional and enthusiast programmers.

2 Answers 2

The networking stack is still involved in a localhost lookup (For one thing it may be set to any ip address in your hosts file). A forum post here suggests even the NIC is involved.

On a PC when you ping your Loopback the NIC is involved down to the NDIS(network driver interface specification), which is the driver software for the NIC and resides between Internet/Data Link layer. This driver is responsible for allowing multiple protocol stacks i.e. IPX/SPX, TCP/IP to coexist. So the ping doesn't actually get framed and sent out on the wire. It simply "polls" the appropriate stack driver to see if it is configured and able to respond to requests.

This would indicate that if your download is using all/most of the resources of the NIC you could see decreased performance.

share|improve this answer

Avoid localhost and use 127.0.0.1 , which is the loopback adress, and as stated in wikipedia:

In TCP/IP a loopback device is a virtual network interface implemented in software only and not connected to any hardware

In contrary the localhost will involve more work as it has to go through the routing table, see here .

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.