Replies: 13 comments 19 replies
-
To make it accessible from the local network, add "--listen" to COMMANDLINE_ARGS. For more information about this option, please refer to the following URL. |
Beta Was this translation helpful? Give feedback.
-
doesn't seem to work on lan between linux computers |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, and everything worked before! I add the --listen argument, use the ip address of the computer with Stable Diffusion in the browser request and the port number separated by a colon. Disabling the antivirus did not give any result either! I repeat, everything used to work, but it stopped for some time:( |
Beta Was this translation helpful? Give feedback.
-
I found my issue. the version in the arch user repository replaces scripts on every startup. so when I had edited the ip to bind to from 127.0.0.1 to 0.0.0.0 it was getting overwritten. I've made changes to how it starts up and now it binds to 0.0.0.0 you can check which it's binding to with sudo netstat -pltn |
Beta Was this translation helpful? Give feedback.
-
If anyone is still interested, I just ran into this problem (running Windows 11, btw). I "fixed" it by editing the webui-user.bat file in the repository root. It looks like the following (at the time of this writing):
As you can see, if you run this .bat file, it locally overrides the COMMANDLINE_ARGS env variable. I added the "--listen" flag to this file, then it worked. New file contents:
|
Beta Was this translation helpful? Give feedback.
-
I don't know if you found the answer but this worked for me. The first time I tried the --listen tag, I got the same error as you. But after I opened port 7860 (both inbound and outbound, both TCP and UDP) in advanced firewall settings (on the host). WebUI actually worked on my laptop. |
Beta Was this translation helpful? Give feedback.
-
Accessing my local Windows 11 instance from my phone broke recently. I updated from an old version of Stable Diffusion for new features and something must have changed. After some troubleshooting I figured out you need an inbound windows firewall rule to accept the connection for the port SD is running on. I also have --listen on my command line args |
Beta Was this translation helpful? Give feedback.
-
to find your local ip adress for cmd or bash: Ethernet adapter Ethernet: Connection-specific DNS Suffix . : your local network will be 192.168.1.111:7860 Thanks to @serick4126 and @codymerhoff |
Beta Was this translation helpful? Give feedback.
-
can anyone put the full command here, like ./webui.sh --listen 0.0.0.0 ? |
Beta Was this translation helpful? Give feedback.
-
@TypicaIDay you can also open webui.py and edit line 42 and 81 from server_name=initialize_util.gradio_server_name(), or any other custom local url. |
Beta Was this translation helpful? Give feedback.
-
"--server-name 192.168.1.50" is the answer I needed. Hope it helps. I added this to the arguments in the webui-user.sh (remember to uncomment that line) and it will only listen for connections on that IP address. |
Beta Was this translation helpful? Give feedback.
-
In my case it was the Firewall on Linux that blocked the connection. 🫣 |
Beta Was this translation helpful? Give feedback.
-
modify the function launch in facefusion/facefusion/uis/core.py to this. By using 0.0.0.0 as the ip, it will be accesible over localhost. Also ensure your firewall allows the connection. def launch(ip: str = '0.0.0.0', port: int = 7860) -> None:
|
Beta Was this translation helpful? Give feedback.
-
Hello. I have installed stable-diffusion-webui on my computer with nvidia rtx graphics card. When you run the webui.bat script, it loads and shows me the local address http://127.0.0.1:7860 . This address is not accessible by other computers on my local network, even when I substitute the ip address in the browser string. I also passed the set COMMANDLINE_ARGS=--share parameter to the webui-user.bat file. In the output, a public link was created for me for 72 hours. But I would like the web-ui to be accessible only from my local network. Is it possible?
Beta Was this translation helpful? Give feedback.
All reactions