Networking issues on Linux
Issues the maintainers labelled both platform:linux and area:networking.
68 issues · 27 open · 41 resolved (60%) · first seen Feb 25, 2026
Is this getting better or worse?
This class of problem is holding steady. 34 new reports in the last 90 days vs 30 in the 90 before — +13%. The open backlog peaked at 27 in 2026-08 and sits at 27 today.
Derived by counting each matching issue from its creation date until it closed. First-party
computation over the anthropics/claude-code tracker — the trend is not published
anywhere upstream.
Which builds report this
57 of these reports name the Claude Code build they were running, spanning 43 releases. Heaviest reporters:
- Claude Code v2.1.212
- Claude Code v2.1.234
- Claude Code v2.1.198
- Claude Code v2.1.197
- Claude Code v2.1.193
- Claude Code v2.1.186
- Claude Code v2.1.150
- Claude Code v2.1.104
Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.
Do these get fixed?
Median time to close is 29 days across 41 closures. Of the 41 closures with a recorded reason, 32% were closed as completed and 28 as not-planned or duplicate. The most recent completed fix landed in 2026-08.
Workarounds reported by the community
22 of these issues post a workaround someone says worked. The highest-engagement ones:
- [BUG] Remote Control sessions die after ~20 min idle — server TTL ignores keepalives
- …ctivity), idle sessions would survive indefinitely. Current Workaround The only effective mitigation is triggering periodic real model activity (e.g., sending a trivial message via terminal input every ~15 minutes). This…
Found in the description of #32982 · still open - API Error: The socket connection was closed unexpectedly. + SOLUTION FOR ANTHROPIC DEVS
- …o not. Finding 4: is not fully honored by Bun After setting as a workaround, active connections still include IPv6: Bun uses its own native DNS resolution for some code paths, bypassing Node.js's dns module settings. The…
Found in the description of #60133 · still open - API Error: Connection refused — a firewall or proxy may be blocking it (ConnectionRefused)
- A workaround I've found is to start a new Claude Code session and type in anything. This resumes the dead sessions. Apparently it picks up a new connection to the servers.
Found in the thread of #87259 · still open - [BUG] v2.1.113+ on linux-x64 behind HTTP CONNECT proxy: Bun runtime fetch race condition + 3 cascading regressions
- …3 + glibc 2.39. Only the architecture (and binary) changes. Workaround: . --- Environment --- --- Claude Code (also reproduced on ) Distribution Bun single-file ELF (log paths show ) OS Ubuntu 24.04.3 LTS, kernel , glibc…
Found in the description of #50252 · resolved - [BUG] Claude Code Cannot Handle API Requests >5 Minutes Long
- …happens for me around 2-10k tokens so...it's a tough bug to work around. Claude Model Other Is this a regression? I don't know Last Working Version No response Claude Code Version 2.1.84 Platform Other Operating System U…
Found in the description of #39906 · resolved
Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.
Matching issues 1–68
Ranked by community engagement (reactions weighted over comments).
- [BUG] Remote Control sessions die after ~20 min idle — server TTL ignores keepalives
- API Error: The socket connection was closed unexpectedly. + SOLUTION FOR ANTHROPIC DEVS
- Remote Control: mobile app connection dies overnight while tmux session stays alive
- API Error: Connection refused — a firewall or proxy may be blocking it (ConnectionRefused)
- [BUG] v2.1.113+ on linux-x64 behind HTTP CONNECT proxy: Bun runtime fetch race condition + 3 cascading regressions
- `API Error: The socket connection was closed unexpectedly` — packet captures show server-initiated FIN mid-stream (10 incidents, requestIds included)
- Remote Control keeps disconnecting unexpectedly
- [BUG] Claude Code Cannot Handle API Requests >5 Minutes Long
- [BUG] False "check your network" timeout error during long Opus 4.8 processing in /advisor mode
- [BUG] Claude Code 2.1.193 on Linux: getaddrinfo EREFUSED on all Anthropic domains
- [BUG] Claude code can no longer be installed or updated using native installer on IPV6-only networks
- [BUG] Remote Control daemon dies with 403 "no longer a member of the organization" while idle — Max plan personal Gmail, no client-side action
- Feature request: allow Remote Control when ANTHROPIC_BASE_URL is a transparent local proxy to api.anthropic.com
- Server withholds stream bytes after accepting request — frequent slow-first-byte and 180s idle-timeout aborts (2.1.157, Opus 4.8)
- [Bug] HTTP/2 connection pool missing SO_KEEPALIVE, causing hangs on CGNAT networks
- [BUG] Claude Code (Bun runtime) fails with getaddrinfo ETIMEOUT when /etc/resolv.conf has trailing inline comments on nameserver lines
- [BUG] NO_PROXY completely ignored — Claude Code v2.1.83 routes all traffic through forward proxy regardless
- claude update fails with "getaddrinfo EREFUSED" on split-DNS VPN — updater resolves via c-ares, not the system resolver
- [BUG] Claude Code intermittent crashes on Linux with IVPN — DNS resolution, MCP auth spam, and server-side instability
- [BUG] claude blocks on startup due to ignoring proxy settings
- [BUG] Claude Code fails with ESERVFAIL on HPC systems with DNS infrastructure issues
- [Bug] Anthropic API Error: Connection closed mid-response causing timeouts
- Remote Control: stale bridge environment after long uptime causes "Session creation failed" until re-registered from a different machine
- [BUG] Claude Code segfaults on startup when Anthropic API is unreachable (should fail gracefully)
- Claude Code CLI unresponsive for ~5 minutes after laptop resume from suspend (Linux)
- [BUG] ConnectionRefused issue. Can't use AI at all on a PAID plan !
- [BUG]
- [BUG] remote control session broken
- [BUG] 1M context unavailable in corporate proxy environment
- [BUG] OAuth token refresh uses HTTP GET instead of CONNECT tunnel — breaks forward proxy environments
- [BUG] Subscription features are withdrawn when `ANTHROPIC_BASE_URL` isn't the official string, even when the proxy terminates at Anthropic
- Linux: silent connection death + device key loss from gnome-keyring + confusing quit behavior
- claude remote-control: session-host RSS leaks ~1GB/day while idle, eventually wedging the relay
- [BUG] Unable to connect to API (ConnectionRefused) Retrying in 2s · attempt 9/10
- Remote Control bridge registration returning 502 — server mode unusable
- [BUG] Account & Usage panel stuck on "Loading usage data..." in VS Code extension when behind HTTP proxy on Remote SSH
- Remote Control: sessions go stale mid-conversation, /rc reconnect fails
- [BUG] Telegram voice/media download fails intermittently in Docker (missing autoSelectFamily)
- [BUG] API Error: Unable to connect to API: Self-signed certificate detected.
- [Bug] Anthropic API Error: Connection closed mid-response
- [BUG] Unable to connect to API : TCP shows ESTAB but app reports ConnectionRefused on prompt input
- [Bug] Socket connection closed during extended API requests
- [BUG] Can't be connected to a chinese SSH server through VS code
- I appreciate the feedback, but I need actual bug report details to generate a GitHub issue title. Please provide: 1. **Description of the problem** - What went wrong? 2. **Error message** (if applicable) - What was the exact error? 3. **Steps to reproduce
- Remote-control: web client never delivers work to bridge after service restart
- [BUG] Remote Control server mode: Session creation fails with 400 "Extra inputs are not permitted"
- Interactive mode hangs ~290s between API calls behind HTTP CONNECT proxy
- [BUG] Interactive mode ignores ANTHROPIC_BASE_URL, connects directly to api.anthropic.com
- Claude Code cannot authenticate from Contabo VPS - Cloudflare blocking claude.ai
- [Bug] Session process killed unexpectedly during execution
- Remote Control: WebSocket close code 1002 incorrectly treated as permanent — kills transport silently with no recovery
- [BUG] Remote Control (--spawn worktree) self-restarts in a rapid loop, eventually hits systemd start-limit-hit and dies
- [Bug] ECONNRESET bursts from Cloudflare ZAG edge during streaming responses
- [Bug] Anthropic API Error: Connection closed mid-response
- remote-control: session children exit on expired session_token with no refresh, then daemon permanently refuses to re-spawn them
- [BUG] Claude apps gateway SSRF guard bypasses HTTPS_PROXY by connecting to resolved IP, breaking deployments behind HTTP proxies
- [BUG] Proxy CONNECT requests are missing the claude-cli User-Agent (inconsistent with tunneled requests)
- [BUG] Claude code cannot connect to the internet
- Interactive TUI requires direct api.anthropic.com reachability, ignoring ANTHROPIC_BASE_URL (2.1.251)
- [Bug] Streaming responses stall after ~0.5–2.7 KB, triggering 180s byte-watchdog timeout
- [BUG] Sandbox network allowlist bypassed via in-sandbox relayed CONNECT (direct CONNECT correctly blocked)
- Remote Control does not auto-reconnect after a network interruption
- Remote Control: reconnect burst wedges hosts in a no-backoff CPU spin (A); a busy turn is misread as "stopped responding mid-turn" (B)
- Background Bash tasks are internally stopped during Remote Control bridge re-registration under intermittent createCodeSession 401s (v2.1.212, Linux)
- Remote Control shows "disconnected" while session is actively processing long turns; --remote-control flag and enableRemoteControlByDefault silently no-op under --dangerously-skip-permissions
- Remote Control: session creation fails — claude.ai serves Cloudflare challenge (cf-mitigated: challenge) to datacenter server IPs
- [BUG] no_proxy NO_PROXY for ANTHROPIC_BASE_URL ignored again starting in 2.1.92 (still broken in 2.1.206)
- [Bug] Cannot Connect to API Error with Auto-Update Failure