In the simplest, most human-friendly terms, “localhost” means “this computer”.

Bạn đang xem: Localhost/wp

Specifically, it means “the computer that a program is running on”. Depending on what program you’re talking about, that can mean your own computer, or it can mean your web server.

For example, if you’re talking about the website browser that you’re using khổng lồ view this very page, “localhost” means “your computer”. But if you’re working in a WordPress plugin on your live website, “localhost” means your web server because the WordPress software is located on your web server (not your own computer).

Basically, it’s “this computer” from the perspective of the program that you’re using, not necessarily your own perspective.

Some More Technical Details About How Localhost Works

Localhost IP Address

By default, localhost resolves to when using IPv4 & ::1 when using IPv6.

Localhost uses the loopback network interface, which means that any data sent khổng lồ localhost is automatically routed back without any modification.

You Cannot Register A .localhost domain name Name

Since 1999, localhost is officially a reserved top-level DNS name. That means you cannot register a domain name name with the extension “.localhost”. The reason for this is so that developers can safely chạy thử websites using the .localhost extension (which you’ll see in a second).

Xem thêm: Tăng Độ Sáng Màn Hình Win 10 Trên Laptop, 4 Cách Chỉnh Độ Sáng Màn Hình Trên Windows 10

How Does Localhost Connect to WordPress?

Though localhost is a general networking term, you’ll often see it referenced while you’re working with WordPress.

It could come up in plenty of different places, but here are a few of the most common spots that you’ll see localhost referenced with WordPress.

1. Localhost WordPress Development

When developers build WordPress sites, they normally don’t install WordPress on a live web server or a staging site right away.

Instead, they install WordPress “locally” on their “localhost”. If you recall the definition from the beginning of this article, that means that WordPress is running on their own computer, rather than a web server.

This allows developers to easily work in a safe sandbox while building the site. Once the WordPress site is ready khổng lồ go live, developers will migrate it from their localhost lớn a live website server.

Xem thêm: Hướng Dẫn Cách Xóa File Backup Iphone Trong Win 10 Itunes? File Backup Iphone Nằm Ở Đâu Trên Win 10

There are several popular tools that you can use khổng lồ set up your own localhost WordPress development environment. Some good options are:

For example, if you use the XAMPP software, you’ll then be able khổng lồ access your local development sites using “localhost/folder_name“:


In most situations, you’ll enter localhost in this box. Again, that’s because the MySQL database is running on the same hệ thống as the WordPress software.

And that’s all most WordPress users need to know about localhost!

Remember, an easy shorthand is khổng lồ just think of localhost as “this computer”. Just remember that you need to think about it from the perspective of the program that you’re working with!