whatis localhost
Localhost (Loopback)
Also known as: 127.0.0.1, ::1, lo
The hostname that always refers to the current machine, mapped to 127.0.0.1 and ::1 on the virtual loopback interface lo.
What Is Localhost (Loopback) in Linux?
Traffic sent to localhost never leaves the machine. Services that bind only to 127.0.0.1 are reachable locally but invisible to the network, which is a common and effective way to keep a database or admin panel private.
A service bound to 0.0.0.0 listens on every interface instead. ss -tlnp shows which address each service is listening on.
Example
ss -tlnp | grep 127.0.0.1 Learn more about Localhost (Loopback)
- IP Addresses Explained IP addresses are how devices on a network identify themselves. This guide covers IPv4 and IPv6 addressing, CIDR notation, public vs private addresses, subnetting basics, and how Linux assigns and displays addresses.
- Checking Open Ports on Linux Knowing which ports are open and which processes are listening on them is essential for security audits, debugging, and firewall configuration. This guide covers ss, lsof, nmap, and related tools.