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

How many colors does an image with 8-bit color depth support?

A
8
0%
B
64
0%
C
128
0%
D
256
0%
Correct! Incorrect!     View the Color Depth 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 bar directly below the definition.

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

TechTerms Newsletter

Improve your technical knowledge with our daily or weekly newsletter! Subscribe today and get new terms and quizzes delivered to your inbox.

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.