nikivdev/code · error

Native local domains proxy failed to bind port 80 (permissio

Error message

Native local domains proxy failed to bind port 80 (permission denied).
macOS requires privileged socket ownership for :80 in native mode.
Run once:
  sudo {}
Then retry: f domains --engine native up
Log: {}

What it means

Error "Native local domains proxy failed to bind port 80 (permission denied). macOS requires privileged socket ownership for :80 in native mode. Run once: sudo {} Then retry: f domains --engine native up Log: {}" thrown in nikivdev/code.

Source

Thrown at src/domains.rs:827

    for (flag, value) in native_tuning_args()? {
        cmd.arg(flag).arg(value);
    }

    let child = cmd
        .stdout(log_file)
        .stderr(err_file)
        .spawn()
        .context("Failed to spawn native local domains daemon")?;

    let pid = child.id();
    for _ in 0..50 {
        if native_healthcheck().unwrap_or(false) {
            return Ok(());
        }
        thread::sleep(Duration::from_millis(100));
    }
    if cfg!(target_os = "macos") && log_contains_permission_denied(&paths.native_log)? {
        bail!(
            "Native local domains proxy failed to bind port 80 (permission denied).\n\
macOS requires privileged socket ownership for :80 in native mode.\n\
Run once:\n  sudo {}\n\
Then retry: f domains --engine native up\n\
Log: {}",
            macos_launchd_install_script_hint(),
            paths.native_log.display()
        );
    }
    bail!(
        "Native local domains proxy failed to become healthy (pid {}). Check logs: {}",
        pid,
        paths.native_log.display()
    )
}

fn native_tuning_args() -> Result<Vec<(&'static str, String)>> {
    const MAPPINGS: [(&str, &str); 8] = [

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/domains.rs:827 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/0983db0c453c1035. Report an issue: GitHub.