Cannot reach the UI site started on a server.
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.
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
up up
wget http://127.0.0.1:8188
What is displayed?
@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$
Try --port 7860
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.
anyone can help?
If this issue is occurring in exactly the same local environment, it could be a firewall issue. Try turning off the firewall.
Still occurring now
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.
I solve this problem by run the code in the terminal of vscode(ssh remote), instead of your local terminal.
I had this issue, turn out it was malwarebytes thinking it was a credential exploit.
You have to add it to the allow list like so: