A-Z Popular Blog Security Search »
Related Guides
Information Technology

A Really Quick Guide to Local Loopback

 , updated on
Local loopback is a virtual network device that a computer uses to communicate to itself. This is often used to connect to local devices and software services. Local loopback is supported by most, if not all operating systems.

IP Addresses

The IP addresses – are reserved for local loopback. This is a total of 16,777,216 addresses. However, it is common to use for loopback with various services binding to this IP on different ports.


It is customary to define a host for loopback known as localhost. This is hardcoded into some operating systems. Localhost can also be defined in a hosts file such as the /etc/hosts file on linux. It is possible to define other hosts for IPs bound to the local loopback device. For example, a web developer might bind their domain name to the IP for the purposes of testing and debugging.


Using the loopback IP for local services may have security advantages over calling a local service by traversing the internet.


Using the loopback IP for local services may reduce your bandwidth consumption as opposed to calling a public or private IP to access the same service.


The loopback network interface is often used for testing and diagnostics because it works when you aren't connected to a network. Operating systems typically depend on the loopback device and may not function properly without it.


A web server binds to a public IP that is open to the internet. The webserver connects to a local database that only binds to the loopback IP. The database isn't available to the internet because it doesn't bind to a public IP and its port is blocked by a firewall. This has advantages in securing the database and in reducing bandwidth consumption.

Other Loopback

Loopback is primarily a networking term. However, other devices on a host may also employee a loopback mechanism. For example, a sound device may support loopback that takes its own output and accepts it as input. This can be used to record output as if it were coming from an input device such as a microphone.
Overview: Local Loopback
A virtual network device that a computer uses to communicate to itself.
Related Concepts


This is the complete list of articles we have written about networking.
Campus Network
Internet Backbone
Internet Of Things
Last Mile
Network Security
Personal Branding
Pervasive Networks
Point Of Presence
Private Network
Proxy Server
Public Network
Reverse Proxy
Space Network
More ...
If you enjoyed this page, please consider bookmarking Simplicable.


A list of networking techniques and concepts.

Networking Basics

A list of basic computer networking concepts.

Network Infrastructure

A list of common types of network infrastructure.

Proxy vs Reverse Proxy

The difference between proxies and reverse proxies with examples.


The three common types of computing endpoint.


The definition of latency with examples.

Network Throughput

A complete overview of network throughput.

Network Performance

The common types of network performance.


The definition of synchronous with examples.


The internet explained.


An overview of URLs.


The definition of firmware with a few examples.


The definition of host with various examples.


A complete overview of localhost with an example.
The most popular articles on Simplicable in the past day.

New Articles

Recent posts or updates on Simplicable.
Site Map