Skip to content

[Codex Cloud] Internal proxy:8080 TCP connection fails despite internet access enabled #54179

Open

Description

@Bellsier

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

Not applicable. Using Codex Cloud through the web browser, not the desktop Codex App.

What subscription do you have?

ChatGPT Plus (personal account)

What platform is your computer?

Codex Cloud (web-based). Accessed from ChromeOS (Chromebook) and Android. The failure occurs inside the remote Codex Cloud runtime, not on the local device.

What issue are you seeing?

Codex Cloud cannot connect to its automatically configured internal HTTP/HTTPS proxy at http://proxy:8080.

The issue is reproducible in both an existing environment and a newly created environment, despite internet access being enabled and api.github.com being added to the allowed domains.

The proxy hostname resolves successfully to 172.31.7.13, but the TCP connection to port 8080 fails immediately.

Exact error:

curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to server

Diagnostics:

The same failure occurs when requesting https://api.github.com and when directly testing http://proxy:8080/.

No proxy variables were modified or bypassed.

What steps can reproduce the bug?

  1. Open Codex Cloud using a personal ChatGPT Plus account.
  2. Create an environment for the GitHub repository Bellsier/gacha-factory-prototype.
  3. Enable internet access and add api.github.com to the allowed domains.
  4. Start a cloud task in the environment.
  5. Run: curl -v --max-time 10 https://api.github.com
  6. Observe that the request fails before any HTTPS connection is established.
  7. Run: curl -v --max-time 10 http://proxy:8080/
  8. Observe the same TCP connection failure.
  9. Repeat in a newly created Codex Cloud environment. The failure reproduces.

What is the expected behavior?

Codex Cloud should be able to connect to its automatically configured internal HTTP/HTTPS proxy and make outbound HTTPS requests to allowed domains such as api.github.com when internet access is enabled.

The request should receive an HTTP response instead of failing to connect to the internal proxy.

Additional information

Environment: Codex Cloud, personal ChatGPT Plus account

Repository: Bellsier/gacha-factory-prototype

Failure timestamp: 2026-10-15 01:06:51 KST (UTC+09:00)

Thread ID: 01a13aff-eacd-74da-847b-79f67b9e00ae

Relevant curl output:

The issue was reproduced across two separate Codex Cloud environments. DNS resolution succeeds, but TCP connectivity to the automatically configured internal proxy fails.

The proxy was not manually configured. No network policy bypass was attempted.

Please investigate the internal proxy connectivity or network restrictions in the Codex Cloud runtime.

Activity

  1. added
    app
    on Oct 15, 2026
  2. added
    bug
    codex-web
    connectivity
    on Oct 15, 2026
  3. github-actions commented on Oct 15, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. Bellsier commented on Oct 15, 2026

    @Bellsier
    Author

    This issue appears to be closely related to #53767.

    Both reports involve personal ChatGPT Plus accounts using Codex Cloud, with internet access enabled and destination allowlists configured correctly.

    In both cases, DNS resolution for the assigned internal proxy succeeds, but TCP connectivity to proxy:8080 fails immediately with the same curl error:

    curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to server

    The issue occurs with different destination domains (GitHub API vs. Vercel) and different Codex Cloud environments.

    This suggests a possible shared runtime or upstream proxy connectivity issue rather than a destination-specific allowlist problem.

    Please consider investigating these reports together. I can provide additional diagnostics if needed.

    Additional reproduction results:

    Codex Cloud can successfully modify repository files, run tests, and create local Git commits.

    However, both GitHub push and PR creation fail due to the internal proxy connectivity issue.

    • Local file modification: PASS
    • npm test: PASS
    • Local commit: PASS (3483070)
    • GitHub push: FAIL (exit code 128)
    • PR creation: FAIL (exit code 1)

    Git push error:
    fatal: unable to access 'https://github.com/Bellsier/gacha-factory-prototype.git/': Failed to connect to proxy port 8080 after 0 ms: Could not connect to server

    PR creation error:
    Post "https://api.github.com/graphql": proxyconnect tcp: dial tcp 172.31.7.13:8080: socket: operation not permitted

    This confirms that the issue blocks normal Codex Cloud development workflows, including pushing commits and creating pull requests.

    No proxy bypass or security policy changes were attempted.

  5. achanga2kdc commented on Oct 16, 2026

    @achanga2kdc

    I am having the same issue using Github Pro. There doesn't seem to be a fix for this issue

    /workspace
    /workspace/AGENTS.md
    {"version": 1, "vpn_configured": false, "http_proxy": "http://proxy:8080", "http_network_policy": {"type": "restricted", "egress_rules": [{"host": "api.github.com"}, {"host": "github.com"}, {"host": "www.github.com"}]}, "tcp_connect_proxy": "http://proxy:8088", "tcp_network_access": {"domains": [], "ip_ranges": []}}

    failed: “Could not connect to server.” The failure was reaching the proxy, hostname proxy, port 8080.

  6. edmcman commented on Oct 19, 2026

    @edmcman

    I'm also experiencing this in a particular codex cloud thread.

  7. hpdrr commented on Oct 21, 2026

    @hpdrr

    same problem, my codex remote cloud cannot create a PR directly to github where it always says that unable to connect

  8. NeuroQi commented on Oct 21, 2026

    @NeuroQi

    Additional independent reproduction from a personal Codex Cloud environment on 2026-10-22 (UTC+08:00), using Android/mobile UI to launch tasks. This appears to match this issue; I have not established that it has the same root cause.

    • A newly configured and published private-repository environment launches tasks, but the checkout starts at an older default-branch commit.
    • Internet access is enabled, with the “Package managers” domain preset; environment is private (“Only me”). No custom proxy secrets or proxy environment variables were added.
    • In the first task, a bounded Git remote check and HTTPS probe could not reach GitHub because the managed proxy hostname resolved but its proxy:8080 listener was unreachable.
    • A second fresh task performed one HTTPS probe to https://github.com/. It failed immediately:
      curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
      http_code=000
      
    • The failure occurs before an outbound request reaches GitHub, so the required remote branch cannot be verified or fetched. Both tasks stopped; no repository files or proxy/network configurations were changed.
    • A separate ordinary GitHub-connected workflow can read the target private repository and confirms the required branch is published. This points toward task-runtime proxy connectivity rather than missing source content, but is not proof of the underlying cause.

    Could the Codex Cloud team check task-container to managed-proxy connectivity for fresh workspaces? Private task identifiers/timestamps can be furnished to authorized OpenAI Support; I am intentionally not publishing private repository/account details here.

  9. vamin commented on Oct 24, 2026

    @vamin

    Reproducing in a managed Cloud task on October 24, 2026.

    With inherited proxy, CA trust, and authentication settings:

    Local execution works: dev environment is available and tests run and pass.

    This was working yesterday for me, and as far as I can tell nothing has changed in the setup.

  10. xXAvoraXx commented on Oct 24, 2026

    @xXAvoraXx

    +++

  11. vamin commented on Oct 25, 2026

    @vamin

    Follow-up to my October 24 report: explicit per-command network permission resolved the failures in my Codex Cloud session.

    The same Git and GitHub API operations failed in the default execution sandbox, then succeeded using these execution-tool arguments:

    {
      "cmd": "git fetch origin",
      "sandbox_permissions": "with_additional_permissions",
      "additional_permissions": {
        "network": {"enabled": true}
      }
    }

    These are arguments to the agent’s execution tool, not a command to paste into a shell. You can ask the agent:

    “Rerun the network operation with sandbox_permissions set to with_additional_permissions and additional_permissions.network.enabled set to true. Preserve the existing proxy, CA trust, credentials and network policy.”

    Verified results:

    • git fetch origin: passed.
    • Git read access to other repositories: passed.
    • gh api requests: passed.
    • Subsequent branch push, PR creation and merge: passed.

    No proxy settings, credentials or persistent network policy were changed. The added network permission applies to the individual command.

    In my tests, the default execution sandbox blocked access to a working managed proxy. The connection error alone therefore did not establish that the proxy was down.

  12. tiagocoelho7 commented on Oct 25, 2026

    @tiagocoelho7

    [Codex Cloud] GitHub remote access fails at managed proxy:8080 across published environments

    Summary

    I am experiencing a persistent GitHub connectivity failure in Codex Cloud (web), even after creating a fresh cloud environment, publishing its configuration, and configuring restricted internet access for GitHub domains.

    Local Git commands work, but remote operations fail immediately when attempting to connect to the managed proxy on port 8080.

    Environment

    • Product: Codex Cloud (web)
    • Local platform: macOS, accessed through a web browser
    • GitHub repository: tiagocoelho7/obsidian (public)
    • Original cloud environment: obsidian
    • Replacement environment: obsidian-v2
    • Network configuration: restricted; github.com and api.github.com added to the allowed domains
    • Unrestricted public internet access: disabled
    • No custom proxy configuration, VPN, or HTTP secrets
    • First observed: October 23, 2026
    • Reproduced: October 24, 2026
    • Timezone: America/Sao_Paulo

    Steps to reproduce

    1. Create a Codex Cloud environment connected to tiagocoelho7/obsidian.
    2. Publish the environment.
    3. Configure restricted internet access allowing github.com and api.github.com, then publish the updated settings.
    4. Start a new cloud task.
    5. Execute the following read-only command:
    git -C /workspace/obsidian ls-remote origin refs/heads/main

    Actual result

    Exit code: 128

    fatal: unable to access 'https://github.com/tiagocoelho7/obsidian.git/': Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
    

    Local repository checks succeed:

    pwd
    /workspace
    
    git -C /workspace/obsidian status -sb
    ## work
    
    git -C /workspace/obsidian rev-parse HEAD
    0c7fe25522b00d8d905512315403c49563e86743
    

    The checkout matches the verified GitHub commit.

    Troubleshooting already performed

    • Recreated the cloud environment.
    • Successfully published the replacement environment.
    • Removed unnecessary installation scripts and startup instructions.
    • Tested from fresh cloud tasks.
    • Configured restricted GitHub-domain access and republished.
    • Confirmed the repository is accessible through GitHub and GitHub Codespaces.
    • Kept the original GitHub repository and its security protections unchanged.

    The same proxy connection failure persists.

    The connection fails before receiving an HTTP response from GitHub. Therefore, remote GitHub authentication could not be validated.

    Expected behavior

    Codex Cloud should be able to establish outbound connections to permitted GitHub domains, allowing normal Git fetch, remote branch verification, push, and Pull Request workflows.

    Impact

    The cloud workspace can execute local operations, but cannot reliably synchronize with GitHub.

    This blocks my intended automated development workflow, which relies on isolated Codex Cloud environments, Git branches, and Pull Requests.

    Related issues

    Request

    Could the Codex Cloud team investigate whether this is caused by task-level network sandbox permissions or by connectivity to the managed proxy?

    A related report indicates that explicit per-command network permission may restore connectivity. I have not yet tested that workaround in my environment.

    Please clarify the supported least-privilege configuration for GitHub remote operations without granting unrestricted access or modifying proxy settings.

    I can provide relevant task identifiers and additional sanitized diagnostics privately if needed.

  13. z133253377-design commented on Nov 2, 2026

    @z133253377-design

    Adding a fresh data point from a Business-workspace user, still ongoing as of Nov 2, 2026, 20:47 CST (UTC+8).

    Our outage so far: Codex Cloud environments in our workspace (ChatGPT Business) have been unable to reach the egress proxy since Oct 30, 2026, 23:32 CST — 69 hours and counting. This is the longest single continuous stretch of this failure I have seen reported.

    Exact error (unchanged across every attempt):
    curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
    (seen via git ls-remote origin and curl in the cloud environment)

    Why this looks platform-side, not account-side:

    Support experience: three attempts through the in-product support chat — no ticket could be created, no human handoff available, no ETA given. status.openai.com shows "fully operational" with no incident posted for this.

    Impact: a finished, tested release (real-estate management tool v1.4: password gate + community price lookup + manual property entry + category overview) cannot be merged or published; our live site is stuck on v1.3 while users wait.

    Ask: please acknowledge whether this proxy outage is a known issue and share any ETA or workaround. 69 hours with no public status is not workable for a paid Business workspace.

  14. shardsofaperture commented on Nov 3, 2026

    @shardsofaperture

    @tibo-openai - this has been going on for weeks - no offical help or response?

  15. KarelMazanek commented on Nov 8, 2026

    @KarelMazanek

    I have same problem sinec 15.October 2026... Communicated with support, but with no result.

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

    appbugcodex-webconnectivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions