Skip to content

JingShing/Ngrok-in-StableDiffusion-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

You can click the image below to watch the tutorial video.

Watch the video

How to enable Ngrok in stable diffusion webui

Windows user


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
    • sample

if you need account system use this

  • add COMMANDLINE_ARGS=--ngrok authtoken:username:password
    • pw

  • 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.
      • success
      • you can get public url here.
    • if you failed may see this.
      • fail
      • 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 you successfully activate. Open the url it gave you.

  • you will see this page. Press visit site to enter.

  • page

    • If you had set an account you will see this.
    • pw
    • You will need to enter the right username and password 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.

  • sd

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.

merge