127.0.0.1 – Localhost (Loopback) Address

127.0.0.1 is a special purpose IPV4 addresses. It’s often called a localhost address or a loopback address and it’s an address that specifies the local computer (the computer you are currently working on). So, 127.0.0.1 is your computer from your computer’s point of view. Also, any 127.x.x.x address has the same purpose and can be used instead of 127.0.0.1. The whole range of addresses starting from 127.0.0.1 to 127.255.255.255 is reserved in IPV4. There’s also an IPV6 version of this address and it looks like this  ::1.In IPV4, you have the whole range of reserved addresses but in IPV6, there is only one.

The localhost address relates directly to localhost hostname (the computer you are currently working on or THIS computer). It cannot be used for communicating with other devices on the network (like any private IP address). For that, you have the IP address assigned to your device by your router. 127.0.0.1 is used only by your local machine and only for some special purposes like testing purposes, network administration and maintenance (we are going to talk about this later).

Why this exact address and not some other?

IETF (Internet Engineering Task Force) and IANA (Internet Assigned Numbers Authority) are the organizations in charge of IPV4 standards and they reserved the whole 127.0.0.0/8 block of IP addresses for loopback purposes. The Class A ends with 127.0.0.0, and the first address that can be assigned is 127.0.0.1. There’s no some deeper meaning behind the decision to reserve this exact block, it was an unused block of addresses.

How it works and how to use it?

127.0.0.1 is recognized by the TCP/IP protocol as a special purpose address. TCP/IP checks the data packages before sending them to the network and if the destination address is 127.0.0.1, the TCP/IP will re-route that data to your local machine. Any data sent to the loopback address will never reach outside the network.

There are several reasons to use 127.0.0.1 IP address. It’s often used for testing purposes. When you ping 127.0.0.1 from your computer you can determine whether the TCP/IP protocol is working correctly without connecting to the network (or to some other computer on that network). You can also use it to check your network card. When you are pinging this address, you won’t actually generate any traffic. So, let’s see how to test these things and how to ping 127.0.0.1 on Windows PC.

You just have to open Command Prompt, type in ping 127.0.0.1, and press ENTER. You will get something like this

You should get 4 replies from this address (from your computer communicating with itself) and a simple ping statistic with a number of data packets sent and received, loss percentage, and an approximate round-trip time.

Since all the addresses from the 127.x.x.x block of addresses are the same and they are all reserved for special purposes, you can ping any address starting from 127.0.0.1 to 127.255.255.255 and you should get the same results if everything is in order (see the example below).

So, we’ve got the same results with the address from the example (127.230.87.25). You can use any 127.x.x.x address for testing. 127.0.0.1 is simply more popular than any other.

You can also use that IPV6 version of 127.0.0.1 (::1) for testing purposes and the results will be similar.

None of these addresses will generate any traffic.

You can also use ping localhost command instead of the numbers and you will get the same results.

Localhost is Microsoft’s name for 127.0.0.1 but it’s basically the same thing. Unlike pinging the address (IPV4 or IPV6 version of the address), pinging the localhost will create some traffic because it includes the name of the computer (in this case Boba-PC). If you don’t want to create any traffic, you should use the address. Instead of pinging the localhost you can ping the loopback and get the same results.

If you get the results similar to those in the pictures, you can be assured that there is nothing wrong with your network adapter and TCP/IP.

127.0.0.1 is also used by network administrators (for maintenance and administrative purposes) and by developers (testing purposes).

Let’s say you are an administrator hosting information via HTTP on your local computer for a certain number of users. Those users connect to the server in a usual way (through a browser or some app) but you can use this localhost address (127.0.0.1) to connect to the server and lessen the network load. Since it’s a local address, any request made by the local machine is considered local and it doesn’t have to travel on to the network. That way, you won’t create any traffic while moving data and maintaining the network (you can do all the administrative and maintaining job locally).

The loopback is also used by software developers for testing purposes. That way, they can test their apps and programs autonomously without using network interface hardware (by using 127.0.0.1 they simulate the network interface without actually accessing the network).

Related IP Addresses

192.168.5.1 192.168.5.1 is a private IPv4 address. It belongs to the block of private addresses within class C. This block includes all the addresses from 192.168...
192.168.100.1 192.168.100.1 is a block C private IP address (like any 192.168.x.x addresses). This is another address used by router and modem manufacturers as a de...
192.168.1.8 192.168.1.8 is a class C private IPV4 address. It’s one of the addresses from the block of private addresses inside class C. It’s used inside local ar...
10.0.0.10 10.0.0.10 is a class A address. It belongs to the block of private IPv4 addresses inside class A, just like all the other 10.x.x.x addresses. They are...
192.168.0.10 192.168.0.10 is a private IPV4 address. It’s one of the addresses from the block of private addresses within Class C. Some other private IP addresses ...
192.168.1.200 192.168.1.200 is a Class C private IPV4 address that belongs to the block of private addresses within class C (this block includes all the addresses s...
192.168.1.101 192.168.1.101 is a class C private IPv4 address. It’s one of 65,534 IP addresses that belong to the reserved block of private IP addresses within clas...
192.168.1.0 Here is one more IP address from the block C. This is another private 192.168.x.x address from this block but unlike many others, this one has a diffe...
192.168.11.1 192.168.11.1 is a private IPV4 address. It’s one of the addresses from the block of private addresses within Class C. Just like any other private IP a...
192.168.0.200 192.168.0.200 is a private IPv4 address. It’s one of the addresses from the reserved block of private addresses within class C. All the 192.168.x.x be...
192.168.0.103 192.168.0.103 is a class C IPV4 address that belongs to the block of private addresses inside this class. It’s not routable on the internet and it can...
10.0.0.5 10.0.0.5 is a class A private IPv4 address. It’s one of the addresses from the block of private addresses inside class A. Since it’s a private address...
192.168.1.250 192.168.1.250 is a private IPV4 address. It's one of the addresses from the block of private addresses inside Class C (all 192.168.x.x addresses belon...
192.168.0.4 192.168.0.4 is a class C private IPv4 address. It’s one of the addresses from the block of private addresses within class C. Addresses from this block...
10.0.0.2 10.0.0.2 is a private IP address from the block of private addresses within block A (all the 10.x.x.x addresses fall within this block). This type of ...
192.168.3.1 192.168.3.1 is a Class C IPV4private address. It’s one of the addresses from the block of private addresses inside Class C (all the 192.168.x.x addres...
192.168.1.11 192.168.1.11 is a private IPv4 address. It’s one of 65,534 addresses from the reserved block of private addresses inside class C. All the addresses fr...
192.168.0.1 You’ve probably heard terms like Private IP Address or Router’s Default IP Address before. 192.168.0.1 is one of the IP addresses that can be consider...
192.168.0.110 192.168.0.110 is a class C private IPv4 address. It belongs to the block of private addresses within class C, just like all the addresses from the 192...
10.1.10.1 10.1.10.1 is a class A private IPv4 address. It belongs to the block of private addresses within class A just like all the addresses from the 10.0.0.0...
192.168.2.1 192.168.2.1 is a private IPV4 address from the block of private addresses within Class C. Along with 192.168.0.1, 192.168.1.1, 10.0.0.1, and a few oth...
192.168.1.4 192.168.1.4 is a private IPV4 address from the block of private addresses within Class C (all the addresses within the range 192.168.0.0 to 192.168.25...
192.168.1.9 192.168.1.9 is a private IPv4 address. It’s one of the addresses from the reserved block of private addresses within Class C. All the addresses from 1...
192.168.1.104 192.168.1.104 is a class C private IPv4 address. It’s one of 65,534 private addresses from the reserved block of private IP addresses within class C (...
192.168.2.3 192.168.2.3 is a private IPv4 address. It belongs to the block of private addresses within class C (just like all the 192.168.x.x addresses). All thes...
192.168.1.16 192.168.1.16 is a class C private IPv4 address. Along with all the other 192.168.x.x, it belongs to the block of private addresses within class C. Pri...
10.0.1.1 10.0.1.1 is a class A private IPV4 address. It belongs to the reserved block of private IP addresses within Class A (all 10.x.x.x IP addresses belong ...
10.10.10.254 10.10.10.254 is a Class A private IPv4 address. It’s one of the addresses from the block of private addresses within Class A (all the 10.x.x.x address...
192.168.1.6 192.168.1.6 is a private IPV4 address. It’s one of the addresses from the reserved block of private addresses within Class C. All the 192.168.x.x addr...
10.10.10.1 10.10.10.1 is a private IPv4 address. It’s one of the addresses from the block of private addresses within class A. All the 10.x.x.x addresses belong ...

Hello, I am Anthony Stuart…

I am writer and editor at RouterInstructions. I’ve been working as a network specialist for various employers for almost 15 years. In my lifetime, I have installed thousands of routers, modems, bridges, switches, etc. My job also includes designing, monitoring, and maintaining local area networks (LANs) as well as wide area networks (WANs). I want to share my knowledge and experience with you and help you understand the basics of IP addressing. I am also going to write about routers, network security, and other network-related topics.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.