-
Notifications
You must be signed in to change notification settings - Fork 370
Bug: OpenClaw connection fails outside local network (hardcoded .local hostname) #35
Copy link
Copy link
Open
Description
Bug Report: Remote Connection Failure
Description
VisionClaw hardcodes the OpenClaw gateway host as a Bonjour/mDNS .local hostname in Secrets.swift / Secrets.kt:
static let openClawHost = "http://Your-Mac.local"
static let openClawPort = 18789This only works on the same local Wi-Fi network. As soon as the user's phone is on mobile data or a different Wi-Fi, all OpenClaw tool calls silently fail.
Steps to Reproduce
- Configure VisionClaw with your Mac's
.localhostname - Switch your phone to mobile data (disconnect from home Wi-Fi)
- Ask Gemini to perform any tool call (e.g. "Send a message to John")
- The action fails silently — Gemini acknowledges but nothing happens
Expected Behavior
The app should either:
- Connect to the gateway over Tailscale / public URL when off local network
- Surface a clear error to the user that the gateway is unreachable
Proposed Solutions
Option A — Tailscale (Recommended)
Use the Tailscale device IP instead of .local:
static let openClawHost = "http://100.x.x.x"Option B — Public Gateway URL
Set bind: "public" in openclaw.json and document the public URL setup.
Option C — In-App URL Switcher
The settings screen already exists. Add a "local" vs "remote" toggle that swaps the gateway URL dynamically.
Severity
High — makes OpenClaw integration unusable for users away from their home network.
See BUGS.md in this repo for full documentation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels