bind address

The network address a server listens on, which decides who can connect to it.

In more detail

Binding to 127.0.0.1 accepts only local connections, while 0.0.0.0 accepts connections on every network interface. A server listening only on 127.0.0.1 cannot be reached from other machines or containers.

Examples

--kafka-addr 0.0.0.0:9092
A service bound to 127.0.0.1 accepts only connections from the same machine; bound to the wildcard 0.0.0.0 it accepts them on every interface. Two services can share a port on different addresses, but a wildcard bind claims the port everywhere. When a local check works but remote clients fail, inspect the bind address before touching firewall rules.
local=127.0.0.1 host=only any=0.0.0.0 host=all contrasts a loopback bind with a wildcard bind.

Related terms

Taught in

References