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

How to get a remote connection?

Open Joeyd348039 opened this issue 1 year ago • 8 comments

I put --listen in the webui bat file. But my ipad still can't connect to the url.

I did see that it says I need to add share=true but it doesn't say in what file I need to do that in.

Joeyd348039 avatar Oct 30 '24 17:10 Joeyd348039

Copy run.bat and modify from

cd %~dp0webui
call webui-user.bat

to

cd %~dp0webui
set COMMANDLINE_ARGS= --autolaunch --theme=dark --listen --share
call webui-user.bat

ruSauron avatar Oct 31 '24 08:10 ruSauron

Not really a solution but a workaround: I personally use Chrome remote desktop. https://remotedesktop.google.com/access/

Sorry for this bad solution

Giribot avatar Nov 07 '24 11:11 Giribot

--listen is incorrect, you need to use --server-name=0.0.0.0

Only do this if you know what you are doing, and have firewalls correctly set up.

shaun-ba avatar Nov 07 '24 14:11 shaun-ba

--listen is incorrect, you need to use --server-name=0.0.0.0

Only do this if you know what you are doing, and have firewalls correctly set up.

parser.add_argument("--listen", action='store_true', help="launch gradio with 0.0.0.0 as server name, allowing to respond to network requests")

--listen is handled.

Launching Web UI with arguments: --cuda-malloc --listen
[...]
Running on local URL:  http://0.0.0.0:7860

This works fine for me. Make sure firewalls aren't interfering.

blooest avatar Nov 27 '24 02:11 blooest

--listen is incorrect, you need to use --server-name=0.0.0.0 Only do this if you know what you are doing, and have firewalls correctly set up.

parser.add_argument("--listen", action='store_true', help="launch gradio with 0.0.0.0 as server name, allowing to respond to network requests")

--listen is handled.

Launching Web UI with arguments: --cuda-malloc --listen
[...]
Running on local URL:  http://0.0.0.0:7860

This works fine for me. Make sure firewalls aren't interfering.

Maybe it was updated, it never used to work.

shaun-ba avatar Nov 27 '24 06:11 shaun-ba

I tried using the --listen --share ,etc... still can't get a remote connection.

Joeyd348039 avatar Mar 04 '25 02:03 Joeyd348039

@Joeyd348039 setup a dyndns domain to your home IP then do the above. Access your SD instance over Internet with xxx.[dyndns_domain].com:7860 (or whatever port you specified) Thank me later

mulder1 avatar Jun 27 '25 09:06 mulder1

I had to modify set COMMANDLINE_ARGS= not in run.bat, but in webui\webui-user.bat.

Here's what I modified to get a remote connection: (I tried --listen, but it didn't work, so I'm using --server-name)

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS= --autolaunch --server-name=0.0.0.0

I'm using a Tailscale network to access my PC from mobile, so I don't need --share. Other use cases may need that argument.

andreiagmu avatar Aug 27 '25 03:08 andreiagmu