Skip to content

[Windows / ChatGPT Work] Network enabled but local executor blocks TCP connect (10013); bind/listen and standalone CLI elevated succeed #60449

Open

Description

@nsforyou

What version of the Codex App are you using (From “About Codex” dialog)?

ChatGPT desktop / Work: 26.1103.4239.0. Standalone Codex CLI: 0.167.0 (comparison only).

What subscription do you have?

Not verified for this report.

What platform is your computer?

Windows, native local execution. Exact OS build was not captured for this report.

What issue are you seeing?

In a local ChatGPT Work session, Allow public internet access is enabled, but the command executor reports CODEX_SANDBOX_NETWORK_DISABLED=1 and runs at Low Integrity. A local TCP socket can bind and listen, yet a client connect to that loopback listener fails with WinError 10013 / WSAEACCES. The behavior also reproduces in a newly started Work conversation.

The user configuration contains [windows] sandbox = "elevated". This setting does not result in network access in the affected Work execution environment. In a separate standalone CLI 0.167.0 session using elevated Windows sandbox mode, the same TCP bind, listen, and connect checks all succeed. MXC is unavailable on this machine. Low Integrity alone does not identify the Work sandbox backend, so this report does not assert which backend or policy layer caused the failure.

What steps can reproduce the bug?

  1. On Windows, enable Work public internet access and start a fresh local Work conversation in desktop version 26.1103.4239.0.
  2. Inspect CODEX_SANDBOX_NETWORK_DISABLED and the executor integrity level.
  3. In that executor, create a TCP listener on 127.0.0.1 using an ephemeral port, then connect a client socket to the selected port. Keep this as a loopback-only test with no credentials or external service.
  4. Observe that bind/listen succeeds but connect returns WinError 10013.
  5. Repeat in an independent Codex CLI 0.167.0 session with elevated Windows sandbox mode; bind/listen/connect succeed there.

What is the expected behavior?

When Work network access is enabled, the local executor should receive an effective policy that permits authorized TCP connections, including loopback. If a higher-priority policy intentionally blocks connections, the UI or diagnostics should identify that effective restriction and its source.

Additional information

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    connectivity
    on Nov 9, 2026
  2. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. will102777 commented on Nov 12, 2026

    @will102777

    Additional reproduction from a separate Windows machine on November 13, 2026.

    • ChatGPT Work local executor on Windows build 10.0.26300, Node.js v22.14.0.
    • Work network access had been enabled and the page refreshed. The executor still reported CODEX_SANDBOX_NETWORK_DISABLED=1.
    • Both 127.0.0.1 and ::1 could listen on an OS-assigned port. Connecting back from the same Node process failed on both with code=EACCES, errno=-4092, syscall=connect (WinSock 10013).
    • On the same machine, standalone Windows PowerShell completed all 9 checks against a local test API and database. The Work executor still could not connect to the local services.

    Minimal reproduction (Node.js, no project dependencies or credentials).

    const net = require('node:net');
    for (const host of ['127.0.0.1', '::1']) {
      const server = net.createServer(socket => socket.end());
      server.listen(0, host, () => {
        const socket = net.connect({ host, port: server.address().port });
        socket.on('connect', () => { console.log(host, 'connected'); socket.end(); });
        socket.on('error', ({ code, errno, syscall }) => console.log(host, code, errno, syscall));
        socket.on('close', () => server.close());
      });
    }

    Could you clarify which effective permission or policy controls localhost TCP in this Work configuration, and whether there is a supported way to permit local integration tests while retaining filesystem isolation?

  4. MildSe7en commented on Nov 18, 2026

    @MildSe7en

    Reproduction on November 18, 2026: a resumed Work conversation can reach localhost and the internet, while a newly created Work conversation on the same Windows PC and in the same local project cannot.

    Environment: Windows build 10.0.26300, PowerShell 7.6.9, trusted local project, and user-level Codex config set to danger-full-access.

    Conversation Effective execution settings and observed behavior
    Existing Work conversation, resumed Its turn metadata recorded the active profile :danger-full-access. Around 15:46 AEST (05:46 UTC), the same production workflow successfully acquired 12 fresh chart captures through local CDP. The same run also received HTTP 200 for three external market-data requests.
    Newly created Work conversation Its command executor used a managed workspace-write profile and reported CODEX_SANDBOX_NETWORK_DISABLED=1. Around 15:50 AEST (05:50 UTC), all three configured 127.0.0.1 TCP endpoints failed with WinError 10013 / WSAEACCES. In that same executor, git ls-remote origin refs/heads/main failed at getaddrinfo() with exit 128.

    The new-conversation failure persisted after switching models, including GPT-6.2 Sol. The difference is observable in the permissions applied to the command executor. What selects the restricted profile for the new conversation is still unknown.

    Could the Work/Codex Windows team compare how effective permissions are resolved for a resumed local conversation and a new local conversation, and identify which setting or managed policy chooses the latter profile? If this behavior is expected, please document how to grant authorized localhost and HTTPS access in new local Work conversations and show the effective policy and its source in the app.

  5. hsrxr commented on Nov 22, 2026

    @hsrxr

    Additional reproduction on a separate Windows machine, 2026-11-22 16:47 UTC+08:00.

    • Windows 11 26H2, build 26300.9818; PowerShell 7.6.9; Python 3.12.5.
    • ChatGPT desktop package registered for the current Windows user: 26.1117.4957.0.
    • Local Work shell with effective workspace-write and restricted network access. Allow public internet access was already on. Toggling it, opening multiple fresh Work chats, restarting the app, and rebooting Windows did not restore connectivity.
    • The standard Windows Codex requirements.toml and the machine-level RequirementsPath override were absent. The user-level Codex config declared sandbox_mode = "danger-full-access", while the Work shell received the managed profile above.

    Results in the affected Work shell

    Probe Result
    CODEX_SANDBOX_NETWORK_DISABLED 1
    Bind and listen on an OS-assigned loopback port, then connect back from the same Python process Bind and listen succeeded on 127.0.0.1 and ::1. Both client connects raised PermissionError, WinError 10013.
    socket.getaddrinfo for example.com, github.com, and api.deepseek.com All three failed with error 11001.
    Credential-free curl.exe HTTPS to example.com and api.deepseek.com/models Exit 6 (could not resolve host) for both.
    Python HTTPS request to example.com using its default proxy configuration PermissionError, WinError 10013, before an HTTP response.

    The loopback probe uses two TCP sockets in one process and no proxy, DNS, or external service. A standalone Codex CLI comparison was not run on this machine. Could the team confirm which policy selects restricted networking for new Windows Work sessions with the public-internet toggle enabled, and whether that policy source can be surfaced in diagnostics?

  6. ImadC9 commented on Nov 23, 2026

    @ImadC9

    I reproduced this on November 23 using ADB over USB as the local service.

    • ChatGPT desktop package: 26.1117.4957.0
    • Windows build: 26300
    • Local Work shell: managed workspace-write, with CODEX_SANDBOX_NETWORK_DISABLED=1 even after enabling network access in the desktop settings.

    On the same PC, regular PowerShell starts the ADB server and successfully runs read-only commands against the authorized USB device. In the Work shell, a direct .NET TCP connection to the ADB server at 127.0.0.1:5037 fails immediately with SocketException / AccessDenied / WinError 10013. The ADB client consequently reports that it cannot connect to its daemon. A separate loopback test in the Work shell also reproduced the denial on an OS-assigned port: bind/listen succeeded, then the client connect was denied.

    Is there a supported way for the Work shell to reach an explicitly authorized localhost service while keeping the existing filesystem restrictions? It would also help if the desktop app showed the effective network policy and where it came from.

  7. miomelliot commented on Nov 23, 2026

    @miomelliot

    I can reproduce a similar TCP connectivity failure in ChatGPT Work on Windows 11 (November 23, 2026). This adds a comparison against an external PostgreSQL endpoint that is reachable from a regular PowerShell session on the same machine, using the same hostname and port.

    Reproduction

    Regular Windows PowerShell (outside Work):

    Test-NetConnection <db-host> -Port <db-port>

    Result:

    TcpTestSucceeded : True
    

    PowerShell executed inside ChatGPT Work:

    Test-NetConnection <db-host> -Port <db-port>

    Result:

    PingSucceeded    : True
    TcpTestSucceeded : False
    

    The hostname resolved to the same IP address, but the TCP connection failed.

    Direct .NET socket connection inside Work:

    [System.Net.Sockets.TcpClient]::new("<db-host>", <db-port>)

    Result: MethodInvocationException from the constructor, with the underlying error (translated from Russian): "An attempt was made to access a socket in a way forbidden by its access permissions." PowerShell exit code: 1.

    Observations

    • The same remote host and TCP port are reachable from ordinary PowerShell on this Windows computer, so the failure is specific to the Work execution context or a process-specific restriction.
    • DNS resolution succeeds inside Work. The failure occurs during TCP connect, before any PostgreSQL authentication can take place.
    • The Work session can execute commands against the local Windows filesystem, despite the TCP restriction.
    • I have not yet captured the effective sandbox profile, CODEX_SANDBOX_NETWORK_DISABLED, or the state of the Allow public internet access toggle, so I cannot attribute this to a specific policy layer.

    Could the team clarify how the effective network policy is determined for local Work executors, and whether there is a supported way to allow outbound TCP connections to explicitly trusted development services while retaining filesystem isolation? Showing the effective sandbox/network policy and its source in Work diagnostics would also make this much easier to troubleshoot.

    The actual database hostname/IP, port, and credentials are intentionally omitted.

  8. VigneshReddyJulakanti commented on Nov 25, 2026

    @VigneshReddyJulakanti

    Guys I had this same issue spent lot of time nothing worked.
    At last in chat gpt window app, I toggled from chatgpt to code on top left.
    Now in new chat, by giviing full persmisison from teh seletion below I treid this again and it worked

  9. YuK1Game commented on Nov 26, 2026

    @YuK1Game

    これはいつ解決しますか?非常に不便しています。
    仕事の調査で外部アクセスが必要だけどそれができずに手動で調査しています。
    AIである必要性がありません。

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

    appbugconnectivitysandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions