views:

439

answers:

3

Just as the question says, what is the Microsoft Loopback Adapter, and as a bonus, what scenerios as a developer would it be useful? I've noticed it's been required when installing a couple of applications to my machine, but aside from guessing, I've never have had a sturdy understanding of it's functionality.

I've read a couple of articles online, but nothing really made me "get it". While I don't need a hugely complex answer, a little explaination would be very useful.

Thanks! George

+1  A: 

When sending messages to 127.0.0.1 (or the localhost) the internal network driver typically handles this by shortcutting a few steps.

If you have a networksniffer/protocol analyzer like wireshark, it can not see these shortcutted packets.

By using a loopback adapter, the messages get send much further through the stack, enabling programs like wireshark to capture the packets (and enabling you to analyze the packets)

Toad
A: 

Some software requires some network functionality, even if the machine in question doesn't have network functionality. The loopback is a dummy network driver, which can have real network protocols bound to it. This allows the software to install properly, even though there isn't a real network card installed in the machine.

Aaron M
The driver is not really meant for this. It is used to feedback any data you send through it, back to itself.
Toad
+1  A: 

Well, the best answer I can give you is a few links. http://en.wikipedia.org/wiki/Loopback The key sentence here is

"Any traffic that a computer program sends to the loopback interface is immediately received on the same interface."

http://www.juniper.net/techpubs/software/erx/erx50x/swconfig-system-basics/html/system-mgmt15.html This may be a little more obscure if you don't know networking well.

Basically, it's a fake network interface, useful for tests and stability. In practice, most likely something you'll never have to worry about (or you'd already know about it!)

Trevoke
Does this mean that it would be possible to have an application listening on the loopback adapter for incoming requests, which were sent from the same machine? In essence, would it be possible to proxy traffic on my local machine by having an application listening on the loopback adapter and routing to a *real* network adapter?
George
Trevoke