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.

Does it mean the same as send to localhost ?

share|improve this question
    
possible duplicate of superuser.com/questions/137846/… –  Sathya May 5 '10 at 15:21
add comment

2 Answers

up vote 5 down vote accepted

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

Wikipedia article

share|improve this answer
    
I like this Simple answer lot! –  user31356 May 5 '10 at 15:29
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

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