stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

How to create public url?

Open CGangel opened this issue 2 years ago • 2 comments

How to create public url? It tells that“set share=True in launch()”,but i can not find “share” in launch.py,or it may in other places?

CGangel avatar Oct 18 '22 17:10 CGangel

Adding --share to the command line options in webui-user.bat will generate a random share link that is displayed in the command window.

mediocreatmybest avatar Oct 18 '22 17:10 mediocreatmybest

Actually this is a bug, that statement should be removed. Since it's no longer effective anyway.... The command line argument discovery has replaced, and sets that variable.

austeregrim avatar Oct 18 '22 17:10 austeregrim

Adding --share to the command line options in webui-user.bat will generate a random share link that is displayed in the command window.

Forgive me for being difficult to understand. Maybe you said a bit vaguely. Could you be more detailed? Thanks a lot!

CGangel avatar Oct 18 '22 18:10 CGangel

Modify the COMMANDLINE_ARGS line webui-user.bat so it reads set COMMANDLINE_ARGS=--share You can also use --listen instead (or in addition?) if you want to host/access the server using your own ip/url

rocketgarden avatar Oct 18 '22 19:10 rocketgarden

its in the webui-user.bat.sh -> set COMMANDLINE_ARGS=--share generates a xyz.app.gradio link. Warning there are reports of bots that scans for gradio links and try to run exploits so use also: --gradio-auth username:password https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings or COMMANDLINE_ARGS= --listen use this if you only want it open in your network or maybe with port forwarding online under a not so public address.

TheRealBlackNet avatar Oct 18 '22 19:10 TheRealBlackNet

add "--gradio-auth username:password" to the commandline_args to enable authentication

tommcg avatar Oct 18 '22 19:10 tommcg

its in the webui-user.bat.sh -> set COMMANDLINE_ARGS=--share generates a xyz.app.gradio link. Warning there are reports of bots that scans for gradio links and try to run exploits so use also: --gradio-auth username:password https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings or COMMANDLINE_ARGS= --listen use this if you only want it open in your network or maybe with port forwarding online under a not so public address.

Thanks!I successfully do it.

CGangel avatar Oct 18 '22 20:10 CGangel

Could not create share link, please check your internet connection. still get this message and no gradio link I've tried everything

Sixmixes avatar Jan 29 '23 18:01 Sixmixes

将“--gradio-auth username:password”添加到 commandline_args 以启用身份验证 hello how to permanently host this stable diffusion url?

luofengbuzaihong avatar Jun 29 '23 02:06 luofengbuzaihong

将 --share 添加到 webui-user.bat 中的命令行选项将生成一个随机共享链接,该链接显示在命令窗口中。

how to permanently host this stable diffusion url?

luofengbuzaihong avatar Jun 29 '23 02:06 luofengbuzaihong

Adding --share to the command line options in webui-user.bat will generate a random share link that is displayed in the command window.

can we create a permanent link to it?

fal3n-4ngel avatar Dec 29 '23 03:12 fal3n-4ngel