ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Cannot reach the UI site started on a server.

Open lxrswdd opened this issue 1 year ago • 7 comments

Your question

I started ComfyUI on my server and I try to access it through Chrome on my Macbook. It seems the access has been refused.

image

Logs

(comfy) assa8945@ubco-csl-105751:~/comfyui/ComfyUI$ python main.py
Total VRAM 48670 MB, total RAM 772588 MB
pytorch version: 2.4.0+cu121
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA RTX A6000 : cudaMallocAsync
Using pytorch cross attention
[Prompt Server] web root: /home/assa8945/comfyui/ComfyUI/web
/home/assa8945/miniconda3/envs/comfy/lib/python3.10/site-packages/kornia/feature/lightglue.py:44: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
  @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)

Import times for custom nodes:
   0.0 seconds: /home/assa8945/comfyui/ComfyUI/custom_nodes/websocket_image_save.py

Starting server

To see the GUI go to: http://127.0.0.1:8188

Other

No response

lxrswdd avatar Aug 05 '24 07:08 lxrswdd

up up

lxrswdd avatar Aug 13 '24 09:08 lxrswdd

wget http://127.0.0.1:8188 

What is displayed?

ltdrdata avatar Aug 13 '24 09:08 ltdrdata

@ltdrdata It seems like the firewall blocked it. FYI, Automatic1111 url worked for me so there must be something different between the UI connections.

comfy) assa8945@ubco-csl-105751:~/comfyui/ComfyUI$ wget http://127.0.0.1:8188 
--2024-08-14 05:19:47--  http://127.0.0.1:8188/
Connecting to 127.0.0.1:8188... failed: Connection refused.
(comfy) assa8945@ubco-csl-105751:~/comfyui/ComfyUI$ 

lxrswdd avatar Aug 14 '24 12:08 lxrswdd

Try --port 7860

ltdrdata avatar Aug 14 '24 12:08 ltdrdata

Try --port 7860

(comfy) assa8945@ubco-csl-105751:~/comfyui/ComfyUI$ wget http://127.0.0.1:7860 --2024-08-14 05:29:39-- http://127.0.0.1:7860/ Connecting to 127.0.0.1:7860... failed: Connection refused.

lxrswdd avatar Aug 14 '24 12:08 lxrswdd

anyone can help?

lxrswdd avatar Aug 23 '24 03:08 lxrswdd

If this issue is occurring in exactly the same local environment, it could be a firewall issue. Try turning off the firewall.

ltdrdata avatar Aug 23 '24 07:08 ltdrdata

Still occurring now

ivanmmz avatar Dec 28 '24 15:12 ivanmmz

This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically.

github-actions[bot] avatar Mar 13 '25 11:03 github-actions[bot]

I solve this problem by run the code in the terminal of vscode(ssh remote), instead of your local terminal.

ZitengXue avatar Apr 17 '25 16:04 ZitengXue

I had this issue, turn out it was malwarebytes thinking it was a credential exploit.

Image

You have to add it to the allow list like so:

Image

Vigilence avatar Sep 30 '25 23:09 Vigilence