Wie sende ich an die "Loopback-Schnittstelle"?

776
akira

Bedeutet das dasselbe wie senden an localhost?

1
Mögliches Duplikat von http://superuser.com/questions/137846/what-does-it-mean-whether-network-device-is-loopback Sathya vor 14 Jahren 0

2 Antworten auf die Frage

7
quack quixote

Kind of. localhost is the customary hostname for 127.0.0.1 which is the customary IP address assigned to the loopback interface. The loopback is like a virtual network adapter that lets your computer talk to itself via typical networking protocols.

While 127.0.0.1 is the most common IPv4 address for the loopback interface, any address in the 127/8 network (meaning any IP address between 127.0.0.1 and 127.255.255.254) is in the loopback network and can be used as loopback addresses.

Similarly, any other valid hostname may be assigned to 127.0.0.1 via DNS or your computer's hosts file. Any access to those names will access the loopback interface as well.

It is also possible, though rare, to redefine localhost to point to some other non-loopback IP address. But most networking software doesn't expect this and it may cause things to fail unexpectedly.

5
ChrisF

Effectively, yes it does mean the same thing, though as @quack points out it's not always as straightforward as that.

Wikipedia article

Ich mag das ** Einfache ** Antwort viel! vor 14 Jahren 0