Reconnecting / Failed to connect to server
The web interface in the browser has lost connection to the ComfyUI server or cannot reach it at all.
The message
Reconnecting… / Failed to connect to server
Affects: ComfyUI
Why is this happening?
The browser interface is only the display; the work is done in the console window (the server). If the server crashes, the window was closed, or the firewall blocks the connection, the browser shows “Reconnecting”. Crashes during generation are often caused by too little RAM or a faulty custom node.
How to fix it
- Check the ComfyUI console window (Portable: the black window, desktop app: logs under
%APPDATA%\Comfy Desktop\logs). The last lines before the crash usually show the actual error. Never close the console window while you are using ComfyUI. - Restart ComfyUI and open
http://127.0.0.1:8188in the browser. - If the console says “Port 8188 is already in use”, ComfyUI is already running or another program is using the port. Close the other instance or start with
--port 8189. - Allow ComfyUI through the Windows firewall and temporarily disable VPN or proxy if you don't need them.
- If ComfyUI always crashes at the same point, test with
--disable-all-custom-nodes(Portable:.\python_embeded\python.exe -s ComfyUI\main.py --disable-all-custom-nodes) and also disable all frontend extensions in the settings under Extensions. - If it crashes while loading large models and RAM is full (Task Manager → Performance → Memory), close other programs and use smaller model variants. Workaround: increase the Windows paging file (Control Panel → System → Advanced system settings → Performance → Settings → Advanced → Virtual memory).
Better not: Do not turn off the entire Windows firewall or antivirus. Allow only ComfyUI or Python specifically.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Set up and maintain ComfyUI on Windows
Desktop or Portable, where the models belong, sharing models with other programs, safely installing custom nodes, updates, startup options … - Your First Image with ComfyUI
Install Comfy Desktop, learn the interface, and create your first AI image with FLUX.2 [small] 4B or Z-Image Turbo. - Your First AI Video with LTX in ComfyUI
Use LTX-2.3 in ComfyUI to create short videos with sound from text or an image. Template, files, settings, and license.
Terms for this
Similar errors
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate – Python does not trust the certificate (often a company proxy or antivirus)
- Expected all tensors to be on the same device (data partly on GPU, partly on CPU)
- Allocation on device (ComfyUI reports too little VRAM)
- Black images or NaN values (VAE precision)
- Cannot execute because a node is missing the class_type property (Node not loaded or wrong workflow format)
Sources
- https://docs.comfy.org/troubleshooting/overview
- https://docs.comfy.org/installation/comfyui_portable_windows
- https://docs.comfy.org/troubleshooting/custom-node-issues
- https://docs.comfy.org/installation/desktop/windows
- https://github.com/Comfy-Org/ComfyUI/blob/master/server.py
- https://github.com/Comfy-Org/ComfyUI/blob/master/comfy/cli_args.py
Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.