Ngrok-in-StableDiffusion-tutorial
Ngrok-in-StableDiffusion-tutorial copied to clipboard
A tutorial for enable ngrok in stable diffusion
English | 繁體中文
Ngrok-in-StableDiffusion-tutorial
A tutorial for enable ngrok in stable diffusion
Why you need to enable Ngrok in stable diffusion
Ngrok can help you generate a public url for sharing your stable diffusion webui for other device.
Tutorial Video
You can click the image below to watch the tutorial video.

How to enable Ngrok in stable diffusion webui
Windows user
-
edit your
webui-user.bat
-
get the authtoken from ngrok. If you don't have ngrok account you can register here.
-
There are two way to open Ngrok.
if you want only share url and don't need account system for protecting
- add
COMMANDLINE_ARGS=--ngrok authtoken
-
if you need account system use this
- add
COMMANDLINE_ARGS=--ngrok authtoken:username:password
-
-
After edit and save bat file. Just run the bat. Remeber to use the latest ngrok.py to run it successfully.
- if it successfully activate it will show this.
-
- you can get public url here.
-
- if you failed may see this.
-
- pleaze check if you use the latest verion of ngrok.py. Or the right format of
COMMANDLINE_ARGS=--ngrok authtoken:username:password
. Or use the wrong authtoken.
-
- if it successfully activate it will show this.
-
If you successfully activate. Open the url it gave you.
-
you will see this page. Press visit site to enter.
-
- If you had set an account you will see this.
-
- You will need to enter the right
username
andpassword
to enter. If you can only see a blank page just refresh the page to clear cache.
-
At the end. You can see the Stable diffusion webui page and use it.
-
Why I want to make this tutorial
There are few info for teaching how to activate this to share url in webui document. And my ppull request about ngrok in stable-diffusion-webui has been approved by AUTOMATIC1111.
That is my honor to merge my code into such big project. It is a shame for no body use the feature I edit so I made this tutorial to help you use it.