Free | No tracking | Every fact with a source|German and English

Error / Home and connection

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

  1. 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.
  2. Restart ComfyUI and open http://127.0.0.1:8188 in the browser.
  3. 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.
  4. Allow ComfyUI through the Windows firewall and temporarily disable VPN or proxy if you don't need them.
  5. 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.
  6. 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:

Terms for this

Similar errors

Sources

Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.