# sandbox.network.allowLocalBinding

> The key that lets fenced commands on a Mac start a server.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** allowLocalBinding

## Think of it like

It is like letting a child set up a stand in the yard. Now people can come to it.

## Definition

sandbox.network.allowLocalBinding is a settings key for macOS. It lets commands in the sandbox listen on a port, for example to start a dev server. They can also reach any port on localhost. The default is false. It does nothing on Linux and WSL2. There, each command in the sandbox has its own localhost.

## Example

Lucy's dev server would not start under the sandbox on her Mac. She turns this key on, and npm run dev works.

## Example code

```json
{
  "sandbox": {
    "network": {
      "allowLocalBinding": true
    }
  }
}
```

Let a dev server start on a Mac in the sandbox.

## Why it matters

Many tests start a small server, and they fail when they cannot listen on a port.

## Common mistake

Turning it on for a Linux machine. It only does something on macOS.

## Three principles

- **Listen on a port.** Dev servers.
- **macOS only.** Not Linux.
- **Off by default.** false.

## Related terms

- [sandbox.network.allowedDomains](https://learn.benibix.com/term/ai/sandbox-allowed-domains-setting)
- [sandbox.enabled](https://learn.benibix.com/term/ai/sandbox-enabled-setting)

---

Source: https://learn.benibix.com/term/ai/sandbox-allow-local-binding-setting
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
