Localhost

Localhost

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 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.

For examples, a common basic test of the TCP/IP protocol stack on a computer is to use the 'ping' command at the operating system's command line prompt:

ping localhost

IETF document "Special-Use IPv4 Addresses" (RFC 3330) describes the IPv4 address block 127.0.0.0/8 as being reserved for loopback. It is therefore excluded from assignment by a Regional Internet Registry or IANA.

For IPv4 communications, the virtual loopback interface of a computer system is normally assigned the address '127.0.0.1' with subnetwork mask '255.0.0.0'. Depending on the specific operating system in use (notably in Linux), and the routing mechanisms installed, this often populates the routing table of the local system with an entry so that packets destined to any address from the '127.0.0.0/8' block would be routed internally to the network loopback device.

In IPv6, on the other hand, the loopback routing prefix ::1/128 consists of only one address ::1 (i.e., 0:0:0:0:0:0:0:1, the address with a one at its least significant bit and zero otherwise) is explicitly defined as an automatic loopback address (RFC 3513), though additional addresses may be assigned to the loopback interface by the host administrator.

Any IP datagram with a source or destination address set to a localhost address must not appear outside of a computing system, or routed by any routing device. Packets received on an interface with destination address of 'localhost' must be dropped.

One notable exception to the use of the 127/8 network addresses is their use in Multiprotocol Label Switching (MPLS) traceroute error detection techniques (RFC 4379) in which their property of not being routable provides a convenient means to avoid delivery of faulty packet to end users.

See also

* .localhost, a reserved top-level domain of the Internet
* domain names
* loopback
* hostname

References

External links

*RFC 3330: Special-Use IPv4 Addresses
*RFC 3513: Internet Protocol Version 6 (IPv6) Addressing Architecture


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Localhost — Dans le domaine des réseaux informatiques, localhost (l hôte local en français) est un nom utilisé pour se référer à l ordinateur local. On s en sert pour communiquer avec notre machine par l intermédiaire du protocole IP. Le nom localhost est… …   Wikipédia en Français

  • .localhost — est un domaine de premier niveau réservé. Un domaine de premier niveau réservé est un domaine de premier niveau qui n’est pas destiné à être utilisé dans le système de nom de domaine (Domain Name System) d’Internet, mais qui est réservé à un… …   Wikipédia en Français

  • Localhost — steht in der Netzwerktechnik für das momentan genutzte System oder dessen IP Adresse. Üblicherweise ist das eigene System (der local host) unter der IP Adresse 127.0.0.1 für TCP/IP Applikationen auf dieselbe Weise erreichbar, wie ein fernes… …   Deutsch Wikipedia

  • Localhost — (127.0.0.1 127.255.255.255)  зарезервированный диапазон IP адресов для обозначения т. н. «локального хоста», то есть для сети, состоящей только из одного компьютера. Как правило, используется всего один адрес  127.0.0.1, который… …   Википедия

  • .localhost — Введение 1999 Тип домена зарезервированный общий домен верхнего уровня Статус действующий Регистратор IANA Назначение определяет локальный компьютер …   Википедия

  • localhost — (так называемый, «локальный хост», по смыслу  этот компьютер)  в компьютерных сетях, стандартное, официально зарезервированное, доменное имя для частных IP адресов (в диапазоне 127.0.0.1  127.255.255.255, RFC 2606), то есть для… …   Википедия

  • localhost — Dans les domaines des réseaux informatiques, localhost (l hôte local en français) est un nom utilisé pour se référer à une interface logique de l ordinateur local. On s en sert pour communiquer avec sa propre machine par l intermédiaire du… …   Wikipédia en Français

  • .localhost — Infobox Top level domain name=.localhost background=#6CC introduced=1999 type=Reserved top level domain status=Reserved to prevent actual use registry=IANA sponsor=None intendeduse=Identifies the current local computer; reserved at the top level… …   Wikipedia

  • localhost — Veranschaulichung der Kommunikation zwischen Browser und Webserver Software innerhalb des lokalen Rechners localhost steht in der Netzwerktechnik für das momentan genutzte System oder dessen IP Adresse. Üblicherweise ist das eigene System (der… …   Deutsch Wikipedia

  • .localhost — Jeder Name einer Domain im Internet besteht aus einer Folge von durch Punkte getrennten Zeichen. Die Bezeichnung Top Level Domain (vom englischen top level domain, übersetzt Bereich oberster Ebene; Abkürzung TLD) bezeichnet dabei den letzten… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”