Loopback IP Address – What Purpose It Serves? is the loop back IP address and its purpose is to loop back to the same machine which is used by the end user. It can be used to establish a connection to the services or system while accessed from the same machine.

It establishes the connection to the same system in a way as it would make a connection to some remote system.Lets say if you are running some web services from your machine and if you browse to on the same machine, you should be served by the web page.


This loopback construct provides a system or a device the capability to validate or establish the IP stack on the machine.

The is a special address of IPv4 (Internet Protocol version 4). It has a range of IP addresses to All the IP Addresses in this range 127.*.*.* will work the same as will do.

All the addresses in the range 127.*.*.* represent the system of the end user and so can be considered as loopback address.

These days IPv6 (Internet Protocol version 6) is taking over IPv4 and sooner IPv4 might completely be replaced. The equivalent of IP address in IPv6 is ‘::1’.

The IP address is also known as the ‘Loopback address’ or the ‘localhost.’

Why is called loopback address or localhost?

The name of IP address comes from one of the Class A networks 127. The 127 class A network was reserved for the loopback functions.

When you ping the IP Address, it treats the end user’s computer as a remote computer. And it re-routes all the outgoing information to the same computer. Thus, it is called the Loopback Address.

Also, the end user’s computer is the host. The IP address is the local computer address or the host name of ‘this computer.’ And, thus, called localhost.

How do the loopback IP address works?

The Loopback IP Address treats the end user system as a remote system. By using the loopback address, it establishes the connection to the same system in a way it would have established the connection to some remote system.

The local network interface helps connect a system to another network’s system. Using the loopback IP address, though, does not allow to use the local network interface hardware while establishing the connection.

This process ascertains that the connection does not establish with any other system than the localhost.

Any information sent from the TCP/IP application, from Internet Protocol (IP) layer gets directed to the Data Link layer in the form of IP datagrams.

If these data packets are addressed and sent to the IP address of the network, they do not appear anywhere over the physical network.

Instead, the data packet is re-routed, or it loops back to the end user’s system.

What is the purpose of the loopback IP address?

The Loopback functionality of the IP address serves multiple purposes which are as follows.

Verifying Network Interface Card (NIC) Status

One of the basic check to verify TCP/IP stack and network interface of a computer, is to send a ping request to

Based on the results of the test, administrators or computer users can assess the operating system IP stack of the system to some extent.

The data packets are sent addressing to the Loopback IP address. If it is received back to the user end system, then the NIC is working properly.

Self-Connectivity of the system

The IP address is used to check ‘self-connectivity’ for the system.

This is especially used in the case where you have a web service running on the system. Before going live, you can access and test the web services on loopback address.

There are few other benefits as well. loopback IP address in host files

The Loopback IP address is assigned in the hosts file of the system. Before sending request to the Domain Name Server (DNS) while accessing any website or remote system, the local host files are first checked for the domain name resolution.

You can locate hosts file on windows at c:\Windows\System32\Drivers\etc\hosts but for other other operatins system like Linux and unix, it can be located at /etc/hosts.

Host file entries for localhost are as follows localhost.localdomain localhost

Hosts files can also be modified to restrict access to some sites. This is also sometimes used by some malware not letting the end user seek legitimate security, by assigning the website to the localhost.

This way of restricting a website is not very standard practice. It can be achieved by following similar entry in hosts file.  www.sitetoberoutedtolocahost.com

What is the ‘Ping of Death’?

This is an attack which can be caused by pinging a request to the IP Address. Known as the ‘Ping of Death’, this ping command ‘ping’ can be used to send the malicious pings to the computer. It may cause the whole server to crash down.

The attacker sends oversized data packets (larger than 65,536 bytes) breaking them into fragments, using the ping command.

Since the ping appears to be coming from the Loopback address, it gets accepted by the host, and it starts giving echo reply to the ping, joining all the fragments.

When they finally receive the oversized packet from joining those fragments, it brings down all the other functionalities of the system.

This attack since does not disclose the identity of the attacker (as it appears to be coming from the Loopback IP address), it is sometimes very effective and difficult to prevent.

How does IP address differ from IP address?

As we already know, IP address is known as the localhost which is a Loopback address. It is often confused with another special IP address.

This special IP address unlike the does not provide any loopback functionality. For a route entry, IP address is a ‘no particular address’ or a ‘non-routable target.’ is an IP address syntax, which is valid. It is parsed and converted to a numeric traditional IP address whenever required.

But in the context of servers, this IP adress infact means all IPv4 addresses available on the local machine.

So, incase your local machine has two IP addresses, and, and a server running on the host listens on, that means it is listening on both of those IPs.

Any web server at will be reachable at all of the other IPv4 addresses of the system.



There are many special addresses that are reserved by the Internet Assigned Numbers Authority (IANA), for various special functionalities serving its own unique purpose. is one of these special addresses. comes with the Loopback functionality which helps in establishing the connection by looping back to the same system. IP address is used to refer to the local computer or the localhost.

Loopback IP address serves various purposes. It helps in verifying the operating system IP stack of the system to validate network as well as checking the self-connectivity of the system.

This mechanism can also be used to test/access web services running on local host without exposing it to outside network to which a computer is connected to.



You May Also Like

SAN (Storage Area Network) – Definition and Details

SAN, also known as the System Area Network, is a high-speed network that connects and allows shared pools of block-level storage to be accessed by dedicated or multiple servers.

Introduction to Client-Server Networks

The client-server network is a computer networking model where at least one of the computers (called server) is used to “serve” other computers (called clients). Examples of some of servers include mail server, file server, and web server.

What is Virtual LAN (VLAN)? – A Beginner’s Guide

A virtual local area network, abbreviated as VLAN, is a collection of devices that are grouped together from different physical LANs and are configured in a way as if they are attached to the same wire.

What is Dynamic IP Address? Static vs Dynamic

A dynamic IP address is a temporary Internet Protocol (IP) address which is allotted to a computing system and can change with time. Dynamic IP addresses are usually implemented by ISPs and networks having a large number of connecting clients or end-nodes.

Satellite Internet – A Good Option for Rural Areas

The satellite internet is a high-speed internet connection provided through the communication satellites. It is location independent and offers global coverage.

More Articles Like This