Skip to content

[Windows / ChatGPT Work] SSH and HTTPS TCP fail with WSAEACCES 10013 after enabling network access and granting Full access #57671

Open

Description

@enessagir

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

The ChatGPT Work/desktop application version has not been independently verified from the About dialog. The separately installed CLI reports codex-cli 0.136.0; this is provided for context and should not be treated as the affected application's version.

What subscription do you have?

ChatGPT Pro.

What platform is your computer?

Microsoft Windows NT 10.0.26200.0, running native PowerShell.

Observed on October 28, 2026.

What issue are you seeing?

In a ChatGPT Work conversation using a local Windows command executor, outgoing TCP connections fail immediately with Windows socket error 10013 / WSAEACCES.

I added the following configuration, restarted the application, and subsequently granted Full access in the UI:

[windows]
sandbox = "elevated"

[sandbox_workspace_write]
network_access = true

The executor verified that the network setting is present in the user configuration file. Nevertheless, repeated checks in the same conversation still show:

  • A direct TCP connection to my SSH server on port 22 fails with native socket error 10013.
  • A direct TCP connection to 1.1.1.1:443 fails with the same error. This test does not depend on DNS.
  • [System.Net.Dns]::GetHostAddresses('github.com') fails with a host-not-found error.
  • CODEX_SANDBOX_NETWORK_DISABLED=1.
  • CODEX_NETWORK_PROXY_ACTIVE is not set.
  • HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY are not set.
  • The effective execution context supplied to the agent still describes workspace-write with restricted network access.

The user-selected UI state and the policy reaching the executor appear inconsistent. I cannot determine whether the source is session permission propagation, a higher-priority policy, or another Windows sandbox issue.

What steps can reproduce the bug?

  1. Start a ChatGPT Work conversation with local Windows command execution.
  2. Add [sandbox_workspace_write] network_access = true to the user configuration.
  3. Restart the application and grant Full access in the UI.
  4. Ask the agent to test SSH and general TCP connectivity.
  5. Observe that the executor still reports the disabled-network flag and rejects outgoing connections.

A minimal PowerShell probe for the affected execution environment:

$probeClient = [System.Net.Sockets.TcpClient]::new()
try {
    $probeTask = $probeClient.ConnectAsync('1.1.1.1', 443)
    if (-not $probeTask.Wait(5000)) {
        throw [System.TimeoutException]::new('TCP connection timed out')
    }
    'CONNECTED'
} catch {
    $probeError = $_.Exception.GetBaseException()
    $probeError.Message
    if ($probeError -is [System.Net.Sockets.SocketException]) {
        'NativeErrorCode: ' + $probeError.NativeErrorCode
    }
} finally {
    $probeClient.Dispose()
}

[Environment]::GetEnvironmentVariable('CODEX_SANDBOX_NETWORK_DISABLED')

Observed results: native socket error 10013, followed by the environment flag value 1.

What is the expected behavior?

The command executor should honor the effective network permissions selected for the conversation. If a higher-priority policy intentionally prevents access, the UI should identify that policy and its source and explain which supported setting can change it.

Changing configuration and granting access should not leave users repeatedly testing an execution environment whose effective permissions silently remain restricted.

Additional information

Activity

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

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. jpdaly797979-cmyk commented on Nov 4, 2026

    @jpdaly797979-cmyk

    I have the exact same problem as above. I've tried changing ports and editing relevant MD files aswell as .toml files. It runs fine through browser, I only have the issue in desktop GPT app (codex). Ergo its an Codex Issue.

  4. orcsab commented on Nov 5, 2026

    @orcsab

    Same issue here. I'm not sure what else I can do besides post this "me, too" to get the developers to fix this.

  5. bradcarroll commented on Nov 7, 2026

    @bradcarroll

    Additional Windows reproduction filed as #60058, using ChatGPT desktop Work version 26.1103.32239 (version reported by the user). Full access appears in the new-chat composer; the permission control then disappears according to the user, while the execution session reports workspace-write/restricted network. A bounded, pinned SSH check fails at the jump-host connection with SSH exit 255 / Permission denied before authentication. Restarting the desktop app and retrying from the same conversation in the web UI did not change the result. No native socket error, HTTPS or DNS tests were collected for this reproduction, and we have not established that it shares this issue's root cause. Full observations and diagnostic limits: #60058 . Please consolidate if appropriate.

  6. cornebistouille commented on Nov 15, 2026

    @cornebistouille

    Additional reproduction on November 15, 2026, in ChatGPT Work using native Windows PowerShell.

    The user reports selecting Full access in the UI. The execution environment supplied to the agent nevertheless explicitly declares workspace-write, restricted network access, and automatic rejection of sandbox elevation requests. These are declared permissions; the underlying enforcement mechanism has not been identified.

    A read-only SSH check against a private LAN host fails before authentication:

    ssh -vvv -o BatchMode=yes -o ConnectTimeout=8 <host-alias> hostname
    
    OpenSSH_for_Windows_9.5p2, LibreSSL 3.8.2
    debug1: Reading configuration data <user-ssh-config>
    debug1: <user-ssh-config> line 28: Applying options for <host-alias>
    debug1: Connecting to <private-LAN-IP> [<private-LAN-IP>] port 22.
    debug2: fd 3 setting O_NONBLOCK
    debug3: finish_connect - ERROR: async io completed with error: 10013, io:<redacted>
    debug1: connect to address <private-LAN-IP> port 22: Permission denied
    ssh: connect to host <private-LAN-IP> port 22: Permission denied
    

    The execution tool reports exit_code=1. Before SSH output it also prints:

    Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.
    

    No causal relationship between this PowerShell startup message and the socket failure is established.

    The user previously demonstrated successful SSH to the same host from ordinary Windows PowerShell; that control was not rerun during today's check. Today's trace confirms that the SSH alias configuration is read, then TCP connection establishment fails with Winsock 10013. No configuration was changed or bypass attempted.

    We have not established the precise enforcing component or a shared root cause with this issue. Could maintainers clarify how to identify the source of the effective restricted network policy when the UI shows Full access, and whether there is a supported fix? The app version and exact Windows build were not collected during this check.

  7. gsg9swat-commits commented on Nov 22, 2026

    @gsg9swat-commits

    Same issue.

    **Additional reproduction — 2026-11-22**
    
    Same issue here, reproduced in ChatGPT desktop for Windows with default local
    execution (no permission changes made). All outbound TCP from the app's local
    command executor fails with Winsock 10013 (WSAEACCES), no matter which client
    is used.
    
    **Environment**
    - ChatGPT desktop (OpenAI.Codex, MSIX/Store build) — version: `[26.1117.41037]`
    - Windows 11
    - Executor: local PowerShell 7 via the app's command runner
    
    **Observed**
    
    1. `ssh.exe -vvv` (Windows OpenSSH) stops at TCP connect, before any SSH handshake:
    

    debug1: Connecting to [VPS_IP] [redacted] port 22. debug3: finish_connect - ERROR: async io completed with error: 10013 ssh: connect to host [redacted] port 22: Permission denied

    2. .NET `TcpClient.ConnectAsync([redacted], 22)` → `SocketException: AccessDenied`
    (NativeErrorCode 10013).
    3. Standalone `plink.exe` 0.85 (official download, SHA-256 verified) → 
    `Network error: Permission denied`.
    
    Setting `SystemRoot` / `windir` / `ProgramData` in the child process allows the
    socket to be created, but `connect()` is still rejected with 10013 — so the
    block happens at the Windows networking layer (WFP), not in pwsh or in any SSH
    client.
    
    **Control tests — this is not the server**
    
    - Manually SSHing to the same host from an ordinary PowerShell (normal user
    context) on the same machine succeeds; port 22 is open.
    - A regular desktop program running outside the Codex sandbox connects to
    TCP/22 on the same host without any issue.
    
    So the failure is caused by the app's local execution sandbox denying outbound
    TCP, not by the VPS, the client, or PowerShell.
    
    **Steps to reproduce**
    1. Start a ChatGPT desktop conversation with local Windows execution enabled.
    2. In the executor run:
    `ssh -vvv -o BatchMode=yes -o ConnectTimeout=5 [USER]@[VPS_IP] true`
    3. Observe the 10013 connect failure before authentication.
    
    This makes the desktop local executor unusable for any SSH-based workflow.
    Please prioritize a fix.
    
    
  8. Misha20062006 commented on Nov 22, 2026

    @Misha20062006

    I reproduced the same outbound TCP failure on November 22, 2026, in a local ChatGPT Work session on Windows.

    Environment

    • Windows reported build 10.0.26300.0, PowerShell 7.6.9, and OpenSSH for Windows 9.5p2.
    • The user-level config.toml has sandbox_mode = "danger-full-access", approval_policy = "never", and [windows] sandbox = "elevated".
    • The running Work session reported a managed workspace-write profile with restricted network access. Sandbox escalation approvals were disabled for this session.
    • The process reported CODEX_SANDBOX_NETWORK_DISABLED=1. CODEX_NETWORK_PROXY_ACTIVE was unset.

    Observed behavior

    • SSH to a configured host on TCP port 4922 exited with code 255 and reported Permission denied while opening the connection, before SSH authentication.
    • A separate PowerShell System.Net.Sockets.TcpClient probe returned SocketErrorCode = AccessDenied, NativeErrorCode = 10013 both for that SSH endpoint and for the public control 1.1.1.1:443. Both probes used literal IP addresses.

    The failure can be checked from the affected Work session without any SSH credentials:

    $client = [System.Net.Sockets.TcpClient]::new()
    try {
        $client.Connect('1.1.1.1', 443)
        'Connected'
    } catch {
        $_.Exception.GetBaseException() | Select-Object SocketErrorCode, NativeErrorCode
    } finally {
        $client.Dispose()
    }
    $env:CODEX_SANDBOX_NETWORK_DISABLED

    The desktop app version and the composer’s permission selection were unverified in this reproduction. Could you clarify how a local Work session gets a managed, network-disabled profile when the user-level config specifies full access, and whether there is a supported fix for an affected chat? This also looks related to #61794.

  9. Misha20062006 commented on Nov 22, 2026

    @Misha20062006

    Follow-up after a full Windows reboot and Codex restart (November 22, 2026)

    I repeated the checks in the same local ChatGPT Work conversation after restarting both Windows and Codex. The failure persisted.

    • The shell still reported CODEX_SANDBOX_NETWORK_DISABLED=1.
    • SSH to the same server on TCP port 4922 still exited with code 255 and Permission denied while opening the connection, before authentication.
    • An independent TcpClient probe still returned AccessDenied (10013) for both the SSH endpoint and the DNS-independent control 1.1.1.1:443.

    This is a blocker for my workflow. I cannot use the affected Work conversation to administer my servers over SSH, and the control confirms that the failure also affects a separate HTTPS endpoint.

    Could you prioritize investigating why this Work session still starts with networking disabled after a reboot and share a supported way to restore network access for the affected conversation?

    The environment and minimal PowerShell reproduction are in my earlier comment.

  10. designandtecnology commented on Nov 25, 2026

    @designandtecnology

    I reproduced a similar TCP access failure with a local MySQL server in
    ChatGPT Work on Windows on November 25, 2026.

    • In the VS Code PowerShell terminal, Test-NetConnection 127.0.0.1 -Port 3306
      returns TcpTestSucceeded: True, and php spark migrate:status succeeds.
    • In ChatGPT Work, the same PHP command fails before authentication.
      A direct PHP TCP probe to 127.0.0.1:3306 returns Winsock error 10013
      (WSAEACCES).
    • A new conversation reproduced the socket error after working around a
      separate CodeIgniter cache startup error. The Microsoft Store shows the
      ChatGPT app was updated today, and the issue still reproduces.

    ChatGPT for Windows version: 26.1120.50957 (released November 24, 2026), as shown in About ChatGPT. The local MySQL connection still fails with Winsock error 10013 in ChatGPT Work, while the same command succeeds in VS Code PowerShell.

    Is there a supported way to allow the Work executor to connect to a local
    MySQL server on 127.0.0.1:3306? What diagnostics would help identify which
    network policy applies to the session?

  11. lotusv2 commented on Nov 28, 2026

    @lotusv2

    Additional reproducible diagnostic result (Nov 28, 2026): ChatGPT Work on Windows selects the offline sandbox account despite network access being enabled in both Work and Codex settings.

    Environment: Windows 11 Pro (build 22000), desktop app 26.1120.6357.0, bundled codex-cli 0.171.0-alpha.13.2. User config: sandbox_mode = "workspace-write", [windows] sandbox = "elevated", [sandbox_workspace_write] network_access = true.

    A/B test on the same machine, using the bundled executable and the same base user configuration:

    Test Standalone CLI ChatGPT Work
    Windows account (hostname redacted) codexsandboxonline codexsandboxoffline
    CODEX_SANDBOX_NETWORK_DISABLED unset 1
    CODEX_PERMISSION_PROFILE unset unset
    CODEX_NETWORK_PROXY_ACTIVE unset unset
    TCP connection to a private LAN SSH server (port 22) successful Winsock 10013 / AccessDenied

    Standalone CLI was launched from normal PowerShell with codex.exe --no-daemon -s workspace-write -a on-request -C "$env:USERPROFILE". A model-executed TcpClient probe succeeded. The Work probe failed before SSH authentication; its request for expanded permissions was automatically rejected (sandbox_approval: false), with no user prompt. Normal PowerShell also connects successfully.

    codex doctor reports restricted filesystem, enabled network, approval OnRequest, elevated sandbox backend, provisioning complete, and valid config parsing. It explicitly does not inspect active thread overrides. Restarting the app, toggling network settings, creating a new Work conversation, and reinstalling tools did not resolve the reported behavior. The Work file-access dropdown offers workspace-write but no full-access option in this UI.

    This isolates the observed discrepancy to the effective execution policy selected for Work versus standalone CLI, rather than a general inability of the Windows sandbox to permit networking. The exact source of the Work policy override remains unknown. Could the team investigate why Work selects the offline account despite the enabled network setting, and why approval requests are suppressed? No sandbox bypass was used.

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