# The service listening on the wrong interface

The client resolves `api`, but its HTTP connection is refused. The service
responds from its own container. Find why these observations differ and restore
the client request without publishing a host port.

## Before you begin

Use a disposable machine with Bash, Python 3, Docker and Docker Compose.
The lab creates the Compose project `breakfix-netops-02` and an internal
network; it publishes no host ports. Docker may pull the Python image. Do not
reuse this project name for other work. Setup refuses existing project
resources, and teardown checks container ownership before removal.

## Run and investigate

From this directory, run `./setup.sh`. The following commands show the
service status, logs and the client-side symptom:

```sh
docker compose -p breakfix-netops-02 ps
docker compose -p breakfix-netops-02 logs api
docker compose -p breakfix-netops-02 exec client python /lab/probe.py api
```

Inspect the service configuration and compare a request from within the
service container. Configuration changes require recreating the service.
Run `./verify.sh` after making your change and `./teardown.sh` when finished.
Teardown removes the lab containers and network, but does not reset edited
files; re-extract the bundle to start over.
