localhost

The name a machine uses for itself; traffic sent there never leaves that machine.

In more detail

localhost normally resolves to 127.0.0.1, the loopback address. Connections to it go to the same machine and never reach a network.

Examples

localhost ansible_connection=local in the inventory runs every example on your own machine without SSH.
A broker that advertises localhost cannot be reached from other containers.
The course demo serves one request over the loopback interface to prove the good variant really listens on the port it was given.
http://127.0.0.1:8080
localhost normally means 127.0.0.1 on the loopback interface lo. A service bound only to loopback is invisible to other hosts even though its port is open locally, which is a common reason a local test passes while remote clients fail.
localhost:9090 is Prometheus on your own machine.
http://localhost:8080/ reaches the course's local CGI server
Loopback addresses in a threat report are never useful indicators.

Related terms

Taught in

References

Certification courses