Interview Prep/Networking/IP Addressing, CIDR, Subnetting & Routing

What is the loopback address and what is 0.0.0.0?

BeginnerConceptIP Addressing, CIDR, Subnetting & Routing
Answer

127.0.0.1 (the whole 127.0.0.0/8) is loopback: traffic never leaves the host. localhost resolves to it. 0.0.0.0 as a listen address means "all IPv4 interfaces", while as a destination in a route it means default.

Common bug: an app bound to 127.0.0.1 inside a container is unreachable from outside the container; it must bind to 0.0.0.0.

All Networking questions Roadmap: Networking for DevOps

More on IP Addressing, CIDR, Subnetting & Routing