# host-network
URL: https://synquic.tech/docs/cli/reference/host-network.md

Commands, arguments, and options for synq host-network.

See the [CLI overview](/docs/cli) for examples. Global flags such as `--json` go before the command; see [global options](/docs/cli/reference#global-options).

## synq host-network

Show, allow or refuse host networking (network_mode: host) for this server's services (run on the server, as root)

```text
synq host-network [options] [command]
```

| Subcommand | Purpose |
| --- | --- |
| [`status`](/docs/cli/reference/host-network#synq-host-network-status) | Show whether services on this server may use network_mode: host, in the stack's .env and in the running api |
| [`on`](/docs/cli/reference/host-network#synq-host-network-on) | Allow network_mode: host for trusted services: such a container binds this server's interfaces and reaches every loopback service and container here, including the panel's API and databases; any member who can edit a service can then use it |
| [`off`](/docs/cli/reference/host-network#synq-host-network-off) | Refuse network_mode: host again (the default); services that still use it fail their next deploy |

## synq host-network off

Refuse network_mode: host again (the default); services that still use it fail their next deploy

```text
synq host-network off [options]
```

## synq host-network on

Allow network_mode: host for trusted services: such a container binds this server's interfaces and reaches every loopback service and container here, including the panel's API and databases; any member who can edit a service can then use it

```text
synq host-network on [options]
```

## synq host-network status

Show whether services on this server may use network_mode: host, in the stack's .env and in the running api

```text
synq host-network status [options]
```
