How to Fix OpenClaw "Localhost Refused" on Windows

Updated: Feb 6, 2026 • Category: Troubleshooting

If you are trying to run OpenClaw on Windows 11 and getting a Connection Refused error, you are not alone. This guide helps you fix it in 3 minutes.

The Problem

By default, OpenClaw is optimized for Mac/Linux environments. On Windows, Docker Desktop sometimes fails to map the localhost ports correctly, causing the agent to be unreachable.

🚀 Can't fix it locally? Try Cloud Deployment

Windows configuration can be a nightmare. Save time by running OpenClaw on a pre-configured Linux VPS.

Deploy on Vultr (Get $100 Credit) ->
* Recommended for stable agent performance.

Step 1: Enable PowerShell Permissions

Open your PowerShell as Administrator and run the following command to allow script execution:

Set-ExecutionPolicy RemoteSigned

Step 2: Modify the Config File

Locate your config.yaml file. Change the host from 0.0.0.0 to 127.0.0.1 explicitly.

Step 3: Restart Docker

Restart your Docker Desktop completely. Then run the start command again.

Need more help?

Join our Discord community to get real-time support from other Windows users.

<- Back to Home