http://localhost

  • cancer10
  • Proficient
  • Proficient
  • cancer10
  • Posts: 268

Post 3+ Months Ago

Hi there,

Does anyone know the technical diff between the following:

http://localhost
http://127.0.0.1
http://loopback

The above three address does the same thing, but is there any diff b/w them (apart from the spellings)?


Thanx
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

nope, localhost resolves to the ip 127.0.0.1 in the host file of the operating system, basically a small and simple DNS server.
  • cancer10
  • Proficient
  • Proficient
  • cancer10
  • Posts: 268

Post 3+ Months Ago

and what is http://loopback?
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

You can safely ignore http://loopback.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Both hostnames are mapped to the 127.0.0.1 address designated for localhost. You can use either one.

In fact, all addresses in the form 127.xxx.xxx.xxx are mapped to the local machine, not just 127.0.0.1.
  • cancer10
  • Proficient
  • Proficient
  • cancer10
  • Posts: 268

Post 3+ Months Ago

I am sure there is/was a reason behind http://loopback
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

Yeah, to confuse people.

localhost will work on just about any system you try it on, loopback will not.
  • cancer10
  • Proficient
  • Proficient
  • cancer10
  • Posts: 268

Post 3+ Months Ago

Well, I think the following would work on any system as long as they have a local area connection enabled.

http://localhost
http://127.0.0.1
http://loopback
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

Any Windows system maybe.
  • cancer10
  • Proficient
  • Proficient
  • cancer10
  • Posts: 268

Post 3+ Months Ago

correct.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

loopback
Quote:
The term loopback (sometimes spelled 'loop-back') is generally used to describe methods or procedures of routing electronic signals, digital data streams, or other flows of items, from their originating facility quickly back to the same source entity without intentional processing or modification. This is primarily intended as a means of testing the transmission or transportation infrastructure...

Most TCP/IP implementations support a loopback interface, which is a virtual software interface, i.e., not connected to any hardware, but fully integrated into the computer system's internal network infrastructure. Any traffic that a computer program sends on the loopback network is immediately received on the same interface.

Correspondingly, the Internet Protocol (IP) specifies a loopback network. In IPv4 this is the network 127/8 ("this network", RFC 3330), and in IPv6 it is the ::1/128 prefix (RFC 3513). The most commonly used IP address on the loopback device is 127.0.0.1 for IPv4, although any address between 127.0.0.0 and 127.255.255.255 is mapped to it. In IPv6 the loopback prefix consists of only one single address. 0:0:0:0:0:0:0:1 (also written as ::1). The standard, officially reserved, domain name for these addresses is localhost (RFC 2606).


localhost
Quote:
In computer networking of Unix-like operating systems, localhost (meaning "this computer") is the standard hostname given to the address of the loopback network interface. The name is also a reserved domain name (RFC 2606) (cf. .localhost), set aside to avoid confusion with the narrower definition as a hostname.

It is used where one would otherwise specify the name or address of a computer in the network. For example, directing a web browser to http://localhost will display the home page of the web site (if any) being served from the computer running the browser (if the webserver is configured to service the loopback interface).

localhost always translates to the loopback IP address 127.0.0.1 in IPv4, or ::1 in IPv6 (see below).

Communicating with the loopback interface in an identical manner as with a remote computer, but bypassing the local network interface hardware, is useful for the purposes of testing software. Connecting to locally hosted network services (such as game servers) or for other inter-process communications can be performed through localhost addresses in a highly efficient manner.

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 48 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.