anthropics / anthropics/claude-code
[BUG] Remote Control fails to connect from mobile (iOS app + Safari) and desktop app fails to reconnect to other local sessions on the same machine — "Can't connect to your computer" despite machine being awake and online
- Dominant language
- Python
- Stars
- 145k
- Forks
- 23.1k
- PR merge metrics
- PR metrics pending
Description
### Preflight Checklist
- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
### What's Wrong?
Description:
I'm unable to connect to my Claude Code desktop session from my mobile device (iOS). The error shown is:
"No se puede conectar con tu computadora. Puede estar en modo de suspensión o sin conexión. Esta sesión se reconectará cuando vuelva a estar disponible."
("Can't connect to your computer. It may be in sleep mode or offline. This session will reconnect when it becomes available.")
This occurs despite the host machine being fully awake, online, and actively running the session (I was mid-conversation with Claude on the desktop app at the time).
Additional finding — this is not mobile-specific: Within the desktop app itself, switching to a different local project's session (also meant to run locally on the same/another of my machines) shows the exact same "can't connect" error, while the currently-focused session works fine. This suggests the issue is in the relay/reconnection service used both for Remote Control (mobile) and for the desktop app's own handling of non-focused local sessions — not something isolated to the mobile client.
Troubleshooting already tried, without success:
Force-closed and reopened the mobile app (iOS)
Signed out and back in on the mobile app
Tried the web client (Safari) instead of the native app — same error
Fully restarted the PC (not just the app)
Fully restarted the iPhone
Fully closed the desktop Claude app via the system tray (right-click → close), not just the window's X button, and reopened it
Checked Windows Firewall for any blocking rule targeting Claude — none found
Environment:
Desktop: Windows, Claude Code desktop app
Mobile: iOS (Android not tested — not available at the time)
Timing: started after the PC was powered off for a few hours and then restarted; the issue persisted even after a full clean reboot of both PC and phone
### What Should Happen?
Description:
I'm unable to connect to my Claude Code desktop session from my mobile device (iOS). The error shown is:
"No se puede conectar con tu computadora. Puede estar en modo de suspensión o sin conexión. Esta sesión se reconectará cuando vuelva a estar disponible."
("Can't connect to your computer. It may be in sleep mode or offline. This session will reconnect when it becomes available.")
This occurs despite the host machine being fully awake, online, and actively running the session (I was mid-conversation with Claude on the desktop app at the time).
Additional finding — this is not mobile-specific: Within the desktop app itself, switching to a different local project's session (also meant to run locally on the same/another of my machines) shows the exact same "can't connect" error, while the currently-focused session works fine. This suggests the issue is in the relay/reconnection service used both for Remote Control (mobile) and for the desktop app's own handling of non-focused local sessions — not something isolated to the mobile client.
Troubleshooting already tried, without success:
Force-closed and reopened the mobile app (iOS)
Signed out and back in on the mobile app
Tried the web client (Safari) instead of the native app — same error
Fully restarted the PC (not just the app)
Fully restarted the iPhone
Fully closed the desktop Claude app via the system tray (right-click → close), not just the window's X button, and reopened it
Checked Windows Firewall for any blocking rule targeting Claude — none found
Environment:
Desktop: Windows, Claude Code desktop app
Mobile: iOS (Android not tested — not available at the time)
Timing: started after the PC was powered off for a few hours and then restarted; the issue persisted even after a full clean reboot of both PC and phone
### Error Messages/Logs
```shell
```
### Steps to Reproduce
Description:
I'm unable to connect to my Claude Code desktop session from my mobile device (iOS). The error shown is:
"No se puede conectar con tu computadora. Puede estar en modo de suspensión o sin conexión. Esta sesión se reconectará cuando vuelva a estar disponible."
("Can't connect to your computer. It may be in sleep mode or offline. This session will reconnect when it becomes available.")
This occurs despite the host machine being fully awake, online, and actively running the session (I was mid-conversation with Claude on the desktop app at the time).
Additional finding — this is not mobile-specific: Within the desktop app itself, switching to a different local project's session (also meant to run locally on the same/another of my machines) shows the exact same "can't connect" error, while the currently-focused session works fine. This suggests the issue is in the relay/reconnection service used both for Remote Control (mobile) and for the desktop app's own handling of non-focused local sessions — not something isolated to the mobile client.
Troubleshooting already tried, without success:
Force-closed and reopened the mobile app (iOS)
Signed out and back in on the mobile app
Tried the web client (Safari) instead of the native app — same error
Fully restarted the PC (not just the app)
Fully restarted the iPhone
Fully closed the desktop Claude app via the system tray (right-click → close), not just the window's X button, and reopened it
Checked Windows Firewall for any blocking rule targeting Claude — none found
Environment:
Desktop: Windows, Claude Code desktop app
Mobile: iOS (Android not tested — not available at the time)
Timing: started after the PC was powered off for a few hours and then restarted; the issue persisted even after a full clean reboot of both PC and phone
### Claude Model
None
### Is this a regression?
Yes, this worked in a previous version
### Last Working Version
_No response_
### Claude Code Version
claude v1.260911.19 (34668594181)
### Platform
Anthropic API
### Operating System
macOS
### Terminal/Shell
Terminal.app (macOS)
### Additional Information
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Remote Control connection and reconnection behavior described in the report, reproducing it from iOS or Safari and from a non-focused local desktop session. Compare the affected sessions after the host restarts, and use the reported connection error as the failure condition. Done means affected sessions connect and reconnect normally while the focused session continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios
- Domain
- desktop-dev, mobile-dev, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100