A-Z Popular New Security Search »
Technology
 
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 127.0.0.0 – 127.255.255.255 are reserved for local loopback. This is a total of 16,777,216 addresses. However, it is common to use 127.0.0.1 for loopback with various services binding to this IP on different ports.

Localhost

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 127.0.0.1 for the purposes of testing and debugging.

Security

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

Bandwidth

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.

Testing

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.

Example

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
Type
Definition
A virtual network device that a computer uses to communicate to itself.
Related Concepts

Networking

This is the complete list of articles we have written about networking.
Architecture
Campus Network
CDN
Client-Server
Endpoints
Extranet
Internet Backbone
Internet Of Things
Intranet
Last Mile
Microtrenching
Network Security
Peer-to-peer
Personal Branding
Pervasive Networks
Point Of Presence
Private Network
Proxy Server
Public Network
Reverse Proxy
Space Network
Tarpit
Telecom
More ...
If you enjoyed this page, please consider bookmarking Simplicable.
 

Networking

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.

Endpoints

The three common types of computing endpoint.

Latency

The definition of latency with examples.

Network Throughput

A complete overview of network throughput.

Network Performance

The common types of network performance.

Synchronous

The definition of synchronous with examples.

Internet

The internet explained.

Url

An overview of URLs.

Firmware

The definition of firmware with a few examples.

Host

The definition of host with various examples.

Localhost

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