ComfyUI
ComfyUI copied to clipboard
How can I reach ComfyUI that runs at home from my office?
I'm not a programmer, could you help me to do this. Thank you! I want to reach ComfyUI that runs at home from my office. I know how to do that in SD Webui, but don't know how to do that in ComfyUI. How to add --listen, and can reach it from outside? It should be easy as SD WebUi, right? Thanks again.
Thank you so much for your help. But, 127.0.0.1 is not my computer’s IP, I can not reach this address from outside. My computer’IP should be 192.168.0.155. I can reach 192.168.50.155:8188, not 127.0.0.1:8188
In WebUI, add - - listen, It’s IP would be 0.0.0.0:7860. So I can reach it from outside.
Should ComfyUI do the same thing?
Thank you so much 😊
在 2023年5月3日,16:25,missionfloyd @.***>
You'll have to forward the port (default 8188) on your router. How to do this depends on your specific router model. You (or anyone else) can then connect using your public IP.
Or set up a VPN server. This also depends on your router.
Or you can try auto1111 and it's --share option. This would be easiest.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
127.0.0.1 is localhost, i.e., the current device. To access it from another device on the same LAN, use its private IP (192.168.x.x). To access it outside the LAN, forward the port and use your public IP, or use a VPN.
For me, 192.168.50.155:8188 can not work. Like WebUI, add --listen then 127.0.0.1:7860 will change to 0.0.0.0:7860, finally 192.168.50.155:7860 will work. I'm sorry, I'm not a programmer, I don't know where should I go to add --listen in ComfyUI. Could you give me a hand? Thank you so much!
It's a commandline argument.
python main.py --listen
You can put it in a batch file.
Sorry again, I'm know nothing with programming. I just know copy and paste. Could you give me a more detailed steps? For example, which file and line I could put this <python main.py --listen>into it. Please forgive my ignorance. Thank you so much!
Open notepad, paste python main.py --listen, save it as whatever.bat, put it in the comfyui folder, double click it to run.
I tried this.
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --listen pause
But, it would not automatically open correctly. I have to type my IP:8188 A little annoying. How can I set the browser to open automatically and correctly ?
Thank you for your patience and answers so much!
--windows-standalone-build is supposed to open it. If not, adding start http://127.0.0.1:8188 on a new line will do it, but only on this computer. On the other computer, you could bookmark it, or make a shortcut (right click > New > Shortcut, then enter the address).
Great!! I finally solve my issue. Thank you again for your graet tool! This great tool will definitely be written into the history of AI development!
You can also use ngrok for personal use. Just install it, open cmd and ngrok http 8188. It will give you a public URL to use. This won't require editing batch files or anything.
This is how I quickly share my comfyui with colleagues without restarting or anything. This also works when you don't have access to ports, FYI, which is handy for a number of scenarios.
I have kind of the same problem. I'm trying to use ComfyUI through a LAN connection, so Stable Diffusion/Automatic1111 with ComfyUI installed running on a PC. Everything is ok if I use the PC directly, but I'm connecting through LAN (http://192.168.1.11:7860/) from a laptop and everything works fine except of ComfyUI which never loads in, as in, I can see it's installed, but the HTML canvas element remains empty rendering ComfyUI unusable.
Is there a setting I can adjust to make it work in this configuration? I haven't investigated further, but I assume some JavaScript async request doesn't quite reach what it needs to?
Great!! I finally solve my issue. Thank you again for your graet tool! This great tool will definitely be written into the history of AI development!
Hello I am trying to do what you where doing,I am also not a programmer, I just wanted to be able to use Comfy from the street with 5G on my phone, can you help me to understand how you did it?
Where can you change port 8188? I change it in the main.py code but still open on 8188.
Where can you change port 8188? I change it in the main.py code but still open on 8188.
You can via a list of commands with -h but you want --port launch argument.
You can use cloudflare vpn for that matter. But you will need a domain name. The youtube channel networkchuck explains very well how to do that. You can later do some simple access via email to protect from unwanted connexion to your home pc.
You can use cloudflare vpn for that matter. But you will need a domain name. The youtube channel networkchuck explains very well how to do that. You can later do some simple access via email to protect from unwanted connexion to your home pc.
Probably don't need a domain name and could use dynamic DNS or other methods.
You can also use ngrok for personal use. Just install it, open cmd and
ngrok http 8188. It will give you a public URL to use. This won't require editing batch files or anything.This is how I quickly share my comfyui with colleagues without restarting or anything. This also works when you don't have access to ports, FYI, which is handy for a number of scenarios.
Could you please elaborate how I can use ngrok with ComfyUI? At present, all I know with A1111 is in the webui-user.bat file I can add a commandline argument --ngrok [token] and after it starts up, a URL is present in my terminal which I can access from anywhere - can you suggest how I can achieve the same with ComfyUI?
The command I gave you is it. Install ngrok, and run that command in cmd.exe ngrok http 8188. It will give you a link to access the port from anywhere
The command I gave you is it. Install ngrok, and run that command in cmd.exe
ngrok http 8188. It will give you a link to access the port from anywhere
Thanks, I figured it out after going to the ngrok website - I was earlier using it differently (A1111 commandline args) and the setup was actually pretty simple tbh, felt dumb that I had to ask here xP
Great!! I finally solve my issue. Thank you again for your graet tool! This great tool will definitely be written into the history of AI development!
Share your solution
https://www.youtube.com/watch?v=My4_gwXOOQ8