Skip to content

Codex Cloud runtime cannot access outbound network - proxy:8080 unreachable and direct DNS fails #50986

Open

Description

@skymy8706-debug

What issue are you seeing?

Codex Cloud runtime cannot access external network resources.

The configured proxy (http://proxy:8080) is unreachable:

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

No HTTP headers were received.

When bypassing the proxy, direct access also fails because DNS resolution does not work (curl exit code 6).

So both outbound paths fail:

  • normal connection → proxy connection failure
  • proxy bypass → DNS resolution failure

This blocks external downloads and prevents tools such as Google Cloud CLI from being installed or used.

Task/session reference:
01a10970-6917-7415-92b9-69f6c0cfe0b8

What steps can reproduce the bug?

  1. Start a Codex Cloud task/session.

  2. Check the proxy environment variables:
    env | grep -iE '^(http|https|all|no)_proxy='

    The environment shows:
    http://proxy:8080

  3. Test normal outbound access:
    curl -I --max-time 10 https://dl.google.com

  4. Observe the failure:
    curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to server

    No HTTP headers are received.

  5. Test direct access while bypassing the proxy:
    curl --noproxy '*' -I --max-time 10 https://dl.google.com

  6. Observe that DNS resolution also fails with curl exit code 6.

  7. Retry the same tests and observe the same failures.

Result:

  • Normal outbound access fails because proxy:8080 is unreachable.
  • Proxy bypass also fails because DNS resolution does not work.
  • External downloads and services cannot be reached from the Codex Cloud runtime.

What is the expected behavior?

The Codex Cloud runtime should have working outbound network access.

If the environment is configured to use http://proxy:8080, that proxy should be reachable and able to forward HTTPS requests.

If direct network access is allowed, DNS resolution should also work when bypassing the proxy.

Expected result:

Additional information

Task/session reference:
01a10970-6917-7415-92b9-69f6c0cfe0b8

Approximate occurrence time:
2026-10-05 around 09:48 KST

Additional details:

  • The issue was reproduced multiple times.
  • Retrying the same curl command produced the same proxy failure.
  • The configured proxy was http://proxy:8080.
  • Normal outbound access failed with curl exit code 7.
  • Bypassing the proxy failed because DNS resolution did not work, with curl exit code 6.
  • No HTTP headers were received through the proxy path.
  • The failure occurred before any request reached dl.google.com.
  • Changing the gcloud installation command did not help because the network layer itself was unavailable.
  • This appears to be specific to the Codex Cloud runtime/network environment rather than the repository, script, or Google Cloud CLI.
  • No credentials, access tokens, verification codes, service-account keys, or other secrets are included in this report.

Activity

  1. added
    bug
    on Oct 5, 2026
  2. added
    codex-web
    connectivity
    on Oct 5, 2026
  3. gregmustdie-beep commented on Oct 7, 2026

    @gregmustdie-beep

    Additional reproduction on 2026-10-06 from an independent Codex Cloud user, affecting the primary GitHub development workflow (not just external downloads).

    Steps:

    1. Open Codex Cloud with an existing GitHub-connected private repository.
    2. Attempt a minimal read-only fetch/clone as part of starting a harmless research-branch task.
    3. Git fails immediately, before retrieving repository content.

    Exact stderr (repository URL redacted):

    fatal: unable to access 'https://github.com/[private-repository].git/': Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
    

    Impact: This prevents the core Codex Cloud workflow of fetching source, making isolated edits, then committing/publishing a branch or draft PR. The same GitHub repository is accessible using a separately connected ChatGPT GitHub integration, and a non-Codex-Cloud remote environment has successfully fetched/pushed it. This does not establish the cause, but points away from a general repository outage or missing repository permissions.

    Expected: A GitHub-connected Codex Cloud task can reach its configured GitHub remote through its supported network path, without requiring the user to provision a separate machine.

    No proxy bypass or DNS tests were performed in this reproduction, and the exact root cause has not been verified. Please investigate the unreachable Codex Cloud proxy and advise on a supported recovery path. No credentials or private repository identifiers are included.

  4. turn4analytics commented on Oct 8, 2026

    @turn4analytics

    I encountered the same Failed to connect to proxy port 8080 error in the new Codex Cloud remote environment and found a working solution.

    Symptoms:

    • git fetch and git ls-remote both failed with exit code 128.
    • HTTP_PROXY and HTTPS_PROXY were configured as proxy:8080.
    • The proxy hostname resolved, but connecting to port 8080 failed.
    • Changing the environment's internet access setting to All (unrestricted) did not resolve the issue.
    • The problem persisted across different devices and networks.

    Working solution:

    Explicitly request additional network permissions when executing commands that require network access:

    {
      "sandbox_permissions": "with_additional_permissions",
      "additional_permissions": {
        "network": {
          "enabled": true
        }
      }
    }

    These permissions must be applied to the actual command execution tool calls, not just mentioned in the task prompt.

    After applying them:

    • git ls-remote origin refs/heads/main succeeded.
    • git fetch origin main succeeded.
    • GitHub push and pull-request creation subsequently succeeded.
    • No changes to proxy variables, Git configuration, or credentials were required.

    Conclusion: At least in my environment, the proxy error was caused by command-level sandbox network restrictions rather than an unavailable proxy or GitHub authentication issue.

    The error message was misleading because it appeared to indicate a broken proxy.

    Hopefully this helps others encountering the same problem in Codex Cloud.

  5. wookingwoo commented on Oct 8, 2026

    @wookingwoo

    I'm experiencing a similar network connectivity issue in GPT Dots.

    Importantly, outbound network access from the Dots terminal used to work normally, but it suddenly stopped working recently.

    Observations

    • Outbound HTTP/HTTPS connections from the interactive Dots terminal fail with Connection refused.

    • Both GitHub and Google are affected.

    • DNS resolution succeeds, but connections on ports 80 and 443 fail.

    • The issue persists across different container instances.

    Testing the suggested workaround

    Following @turn4analytics's suggestion, I checked the execution permissions supported by the Dots agent.

    The agent reported support for:

    • sandbox_permissions: use_default

    • sandbox_permissions: require_escalated

    However, with_additional_permissions and additional_permissions.network.enabled are not supported by the current Dots execution tool.

    Using require_escalated:

    • curl -I https://api.github.com → HTTP 200

    Interestingly, the agent also reported successful API access with default permissions.

    This suggests that the agent's execution environment and the interactive terminal may have different network access behavior.

    Questions

    1. Was there a recent change to GPT Dots networking or sandbox permissions?

    2. Is the difference between agent execution and the interactive terminal intentional?

    3. Is there a supported way to restore outbound network access in the interactive terminal?

    4. Could this be caused by a misconfiguration on my side? If so, are there any settings or permissions I should check?

    Since this previously worked, I'm wondering whether this is a regression or something I may have configured incorrectly.

    Any guidance would be greatly appreciated. Thanks!

  6. sparitudaad-oss commented on Oct 9, 2026

    @sparitudaad-oss

    I am seeing the same Codex Cloud outbound proxy failure.

    Environment:

    • ChatGPT Web
    • macOS
    • Google Chrome
    • ChatGPT Plus / personal workspace

    Task ID:
    01a11e2d-8bd3-76cd-9cb9-216dc850d086

    Approximate occurrence:
    2026-10-09 around 10:06 JST

    Additional diagnostics:

    proxy resolves successfully:

    172.31.0.93 proxy

    But direct access to the internal proxy fails even when bypassing HTTP_PROXY:

    curl --noproxy '*' -v --max-time 5 http://proxy:8080

    Result:

    Failed to connect to proxy port 8080 after 0 ms:
    Could not connect to server

    The same happens for the TCP connect proxy:

    curl --noproxy '*' -v --max-time 5 http://proxy:8088

    Result:

    Failed to connect to proxy port 8088 after 0 ms:
    Could not connect to server

    External HTTPS access also fails for:

    • github.com
    • registry.npmjs.org
    • pypi.org

    The environment contains:

    HTTP_PROXY=http://proxy:8080
    HTTPS_PROXY=http://proxy:8080

    and /etc/codex/network-policy.json contains:

    "http_proxy": "http://proxy:8080"
    "tcp_connect_proxy": "http://proxy:8088"

    The issue reproduces with both:

    • Package managers
    • All (unrestricted)

    I also observed the failure during a new Cloud environment setup before completing setup/publish, where GitHub connectivity failed at the proxy step.

    This appears to affect VM → internal Codex proxy connectivity rather than a repository-specific or domain-allowlist issue.

  7. sparitudaad-oss commented on Oct 9, 2026

    @sparitudaad-oss

    Additional client information for my reproduction:

    • Codex Cloud task launched from: ChatGPT Web
    • OS: macOS
    • Browser: Google Chrome
    • Workspace: ChatGPT Plus / personal workspace

    The proxy connectivity failure described above was reproduced from this client setup.

  8. MarceloMeloRJ commented on Oct 9, 2026

    @MarceloMeloRJ

    Subject: Codex Cloud network proxy unreachable on port 8080

    My Codex Cloud environment cannot access GitHub or external HTTPS services.

    Internet Access is enabled, and I have not configured any custom proxy environment variables or network secrets.

    The environment automatically uses http://proxy:8080 for HTTP_PROXY and HTTPS_PROXY.

    Both commands fail:

    • git ls-remote origin refs/heads/main — exit code 128
    • curl -I https://github.com — exit code 7

    The reported error is:

    Failed to connect to proxy port 8080 after 0 ms: Could not connect to server

    I have verified that the repository exists, the Git remote origin is correctly configured, and the working directory is correct.

    I also republished the Codex Cloud environment, but the issue persists.

    This is blocking multiple Codex development tasks. Please investigate the environment's network proxy provisioning or connectivity.

    Repository: MarceloMeloRJ/marcelo-careeros

    Please advise how to restore network access.

  9. wrzek-git commented on Oct 12, 2026

    @wrzek-git

    I can reproduce this in the current Codex Cloud UI with a private GitHub repository.
    Native UI Push fails with:
    Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
    The exact same branch pushed successfully when Codex executed:
    git push --set-upstream origin codex/company1-app-roles
    with temporary command-level network permission:
    with_additional_permissions
    network.enabled: true
    The push completed with exit code 0 and the branch was created on GitHub.
    This confirms in my case that GitHub authentication, repository write access, remote configuration and branch state are correct. The failure appears specific to the built-in Push action not receiving the same command-level network permission.
    The environment was migrated from a Legacy Codex Cloud environment, although other reports suggest migration is probably not required to reproduce this issue.
    Is the built-in Push action expected to request/use the same managed network permission automatically?

  10. dadiz-ha commented on Oct 12, 2026

    @dadiz-ha

    I’m seeing a similar issue with Tailscale SSH access in Codex Cloud.

    • proxy resolves successfully.
    • proxy:8080 is reachable; GitHub HTTPS works.
    • proxy:8088 returns Connection refused (errno 111), including with require_escalated and from the interactive cloud terminal.
    • /etc/codex/network-policy.json reports vpn_configured: true, but TCP domains and IP ranges are empty.

    The issue reproduces in two separate cloud environments after publishing. SSH between the VPS machines over Tailscale works, with verified host keys and key-based login.

    How can we enable the supported TCP CONNECT listener and TCP grants? The UI only exposes an additional allowed-domains field.

  11. xXAvoraXx commented on Oct 23, 2026

    @xXAvoraXx

    ++

  12. fumi129 commented on Oct 24, 2026

    @fumi129

    I can reproduce the same issue in multiple newly created, published Codex Cloud environments.

    It still reproduces with Internet access set to All (unrestricted).

    * Uses proxy env variable no_proxy == 'localhost,127.0.0.1,::1'
    * Host proxy:8080 was resolved.
    * IPv6: (none)
    * IPv4: 172.31.11.45
    * Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
    * closing connection #0
    curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
    Bypassing the proxy also fails because direct DNS resolution is unavailable (curl exit code 6).
    
    Impact: outbound HTTPS and Google Cloud OIDC token exchange are blocked from Codex Cloud.
    - First observed: 2026-10-25 02:45–03:00 JST
    - Still reproducible afterward
    - ChatGPT desktop: 26.1021.31345
    - macOS: 26.6.2
    - Feedback session: 01a16ef8-c5f2-7294-ae24-4e9d33b10087
    I can provide full Cloud task links privately through OpenAI support if needed.
    
  13. fumi129 commented on Oct 25, 2026

    @fumi129

    Follow-up: explicit per-command network permission (network.enabled: true) fixed ordinary outbound HTTPS for me.

    However, GCP OIDC token exchange still fails in a newly published environment and a fresh Cloud task, even with Internet access set to All (unrestricted):

    • HTTP 503
    • error: identity_exchange_failed
    • failure occurs at the internal proxy /identity/gcp/...:generateAccessToken endpoint, before Google STS/IAM is reached.

    This appears separate from the command-level proxy/network permission issue. I have also reported the sanitized details through OpenAI Support.

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

    bugcodex-webconnectivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions