space-nuko / ComfyBox

Customizable Stable Diffusion frontend for ComfyUI
GNU General Public License v3.0
615 stars 48 forks source link

ngrok can't port forward ComfyBox correctly #154

Open BornSaint opened 1 year ago

BornSaint commented 1 year ago

The problem looks like in ComfyBox. Someone said to run in colab should set port 443 on ComfyUI, but I can't do it, that's why I use ngrok. ComfyUI, A1111, Swarm, any UI except ComfyBox works via ngrok normally. ComfyBox loads the page via ngrok, but it just say "loading..." eternally, and locally works normally.

vorstcavry commented 1 year ago

I also experienced the same thing when running this google colab comfybox notebook, did you use a colab notebook or install a local pc?

BornSaint commented 1 year ago

I also experienced the same thing when running this google colab comfybox notebook, did you use a colab notebook or install a local pc?

I'm using locally, fortunate for you i think you need just to set 443 for ComfyUI in colab to fix, but locally it's not that simple, because need to ask the internet provider to open 443 port, and it comes with many risks

halr9000 commented 1 year ago

I chose to setup a point to point VPN (Tailscale) at home, which has other uses. Comfybox works fine through it.

BornSaint commented 1 year ago

@halr9000 thank you for the tip, i will try hamachi later to know if it applies

johndpope commented 8 months ago

you may find that ngrok is successfully port forwarding the web - but because the code is looking for local comfy backedn - it can't find it ( it would be looking on the end users localhost). you could attempt to do 2 port forwarding -

  1. do your first ngrok port forwarding for comfybox
  2. expose comfyui with ngrok portforwarding comfyui-blabla.ngrok.app (test)
  3. rewire comfybox to point to that instead of localhost.

UPDATE looking at network traffic - above is eroneous. everything is routing through to api.ts