# The dev proxy didn't start

What "Axle couldn't start the proxy" means and how to fix it.

```text
warning: Axle couldn't start the proxy on port 3000: Only one usage of each socket address is normally permitted.
hint: Another program may have the port: stop it, or choose another port under [proxy] in axle.toml.
```

```text
warning: the [proxy] section of axle.toml has routes but no port, so Axle didn't start the proxy
hint: Add a port under [proxy], such as port = 3000.
```

## Why it happens

The root `axle.toml` has a [`[proxy]` section](https://axlers.dev/docs/reference/configuration.md#dev-proxy) and the run includes a persistent task, so Axle tried to serve the dev servers on one address, and couldn't: either another program, often a dev server or an earlier `axle run dev` still running, already listens on the port, or the section has `routes` but no `port`.

The run carries on without the proxy, and each dev server still answers on its own port.

## How to fix it

- Stop the program that has the port. On macOS and Linux, `lsof -i :3000` shows which one; on Windows, `netstat -ano | findstr :3000` shows its process ID.
- Or choose a free port under `[proxy]`, one that none of the dev servers uses itself:

```toml
[proxy]
port = 3000
routes = { "/" = 5173, "/api" = 4000 }
```
