Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

Network & Infrastructure / Linux Networking & Host Performance

Network namespaces and a listener invisible to the host shell

An application listens successfully inside its container or namespace, but a host-level port check reports nothing. Investigators may be examining a different network stack from the workload.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Linux network namespaces, host routing and network drivers; availability and semantics depend on kernel and driver versions. Diagnostic/design example; not tested on production equipment.

What to check first

Record process namespace membership, interfaces, routes, listeners and any veth or proxy path connecting to the host. Compare the workload's view with the host view explicitly.

What the results mean

Network namespaces isolate networking objects. A socket in one namespace does not automatically appear in another, and publishing it requires an intentional forwarding or proxy design.

Plan the fix

Repair the intended namespace-to-service exposure path and its access policy. Avoid moving the workload into the host namespace merely to make a diagnostic command display the listener.

Check the result and know how to undo the change

Validate service access from intended clients and refusal from excluded networks. Restore the former namespace configuration if isolation changes or unrelated host ports become reachable.

Share this article

Back to all articles