Localhost

"Localhost" is the default hostname that refers to the local computer that a program is running on. It uses the IP address of 127.0.0.1 — also known as a "loopback" address because it routes information sent to it back to the local machine. Developers use "localhost" to test websites and software by pointing their web browser to the local computer instead of a remote server.

The localhost IP address 127.0.0.1 is a special address that is never assigned to any device by a network's router; it always points to the current device whenever requested. The name "localhost" is also reserved as a top-level domain name, not assignable by domain registrars, which prevents websites from hijacking and spoofing a local connection.

"Localhost" is used by developers testing websites and applications to fake a connection to another server. For example, if you are running web server software on a computer while building a website, you can point your web browser to "localhost" to view the in-progress site. The connection does not need to travel over a network, but the browser treats it like any other domain name.

Updated February 20, 2023 by Brian P.

quizTest Your Knowledge

WPA2 wireless encryption requires a password of what minimum length?

A
8 characters
0%
B
12 characters
0%
C
16 characters
0%
D
24 characters
0%
Correct! Incorrect!     View the WPA2 definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Localhost on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.