Skip to content

Windows loopback connect returns AccessDenied/10013; effective task network policy unclear (CLI 0.163.0-alpha.10.2) #54675

Open

Description

@ji394vul3nn-cmd

Version and environment

  • Codex CLI: 0.163.0-alpha.10.2
  • Windows host: DESKTOP-QR3I0O9

Observed failure

At 2026-10-16T16:30:12.959Z, this PowerShell command failed during an outgoing loopback connection:

Invoke-WebRequest -Uri 'http://127.0.0.1:3101/' -TimeoutSec 3 -UseBasicParsing

Captured exception chain:

  • System.Net.Http.HttpRequestException
  • System.Net.Sockets.SocketException: SocketErrorCode=AccessDenied, NativeErrorCode=10013

Node had not been started; no Node bind/listen attempt occurred in this workflow. This is a connect failure, not a demonstrated Node server bind failure.

Limited diagnostic observations

  • Current exposed runtime metadata later reported Full Access / network enabled.
  • User configuration reported sandbox_mode="danger-full-access", windows.sandbox="elevated", approval_policy="never".
  • These later runtime/config observations do NOT establish the effective policy or execution engine of the original failed command.
  • A subsequent official codex doctor --json completed with 21 OK checks and 4 warnings.
  • That doctor invocation reported elevated backend, network sandbox enabled, and no managed proxy configured. It explicitly reported active thread overrides as "not inspected", so this does not establish the original active task's effective policy.
  • Security 5157 and Windows Defender Operational queries for 2026-10-16T16:28:12.959Z through 16:32:12.959Z returned no matching events. This does not establish auditing was enabled or that no blocking occurred.

Request

Please identify the actual execution engine and effective network policy for this failure, and provide the smallest supported repair or diagnostic procedure for this exact loopback connect case.

No credentials, cookies, environment-variable dump, session/conversation content, training data, or raw logs are attached.

Activity

  1. added
    bug
    CLI
    windows-os
    sandbox
    connectivity
    on Oct 16, 2026
  2. danielvardzak-lab commented on Oct 21, 2026

    @danielvardzak-lab

    Windows Codex MXC – localhost SocketException 10013 blocks DaVinci Resolve integration

    I can reproduce a similar Windows loopback connectivity failure while integrating Codex with Blackmagic DaVinci Resolve Studio 21.1.0.14.

    Environment

    • Windows, interactive session 12
    • Codex with windows.sandbox = "elevated"
    • Some Codex processes launched with features.prefer_mxc=true
    • DaVinci Resolve Studio 21.1.0.14
    • Python 3.14.7

    Confirmed results

    • Direct Resolve Python API from normal PowerShell: API: OK
    • Local read-only Python bridge at 127.0.0.1:18761: works from normal PowerShell
    • Same bridge accessed from Codex: System.Net.Sockets.SocketException (10013) before any HTTP response
    • No authorization token was sent during the Codex connectivity test
    • All inspected Codex and ResolveMCP processes belonged to the same Windows user and session

    Separate MCP issue

    Blackmagic ResolveMCP run_script also fails on the minimal code:

    result = {"script_body_reached": True}

    with:

    AttributeError: module '__main__' has no attribute '__file__'

    This second failure may be unrelated to loopback restrictions.

    Request

    Please identify the effective sandbox/network policy responsible for the localhost connection failure and recommend the smallest officially supported solution that preserves sandbox security.

    I can provide sanitized diagnostic details if needed. No credentials or access tokens are included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugconnectivitysandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions