Repository: stable-diffusion-webui
Issue: [Bug]: Extention's tab not loading on --listen
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

When you launch the WebUI with the arguments --listen and the one to allow unauthorised extension access when using the listen command, if you load up the WebUI on a device that is not the one that's hosting the WebUI if you go to the extensions tab it doesn't load any of the extensions installed doesn't allow you to check the updates and if there is any you can't see to do them, you can, however, access this from the host device with no issues. 

### Steps to reproduce the problem

1. Go to .... extensions tab on a non-host device with the commands added to the arguments for the WebUI.

### What should have happened?

the list of the installed extensions should load not have the gradio loading icon spin indefinitely 

### Commit where the problem happens

20ae71faa8ef035c31aa3a410b707d792c8203a3

### What Python version are you running on ?

Python 3.10.x

### What platforms do you use to access the UI ?

Windows

### What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
--listen --enable-insecure-extension-access --api --port 57816 --theme dark
```


### List of extensions

Stable-Diffusion-Webui-Civitai-Helper
clip-interrogator-ext
infinite-zoom-automatic1111-webui
sd-model-organizer
sd-webui-controlnet
sd_dreambooth_extension
stable-diffusion-webui-eyemask
stable-diffusion-webui-model-toolkit
stable-diffusion-webui-state

### Console logs

```Shell
venv "E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.3.0
Commit hash: 20ae71faa8ef035c31aa3a410b707d792c8203a3
Installing requirements

Installing requirements 1 for Infinite-Zoom



If submitting an issue on github, please provide the full startup log for debugging purposes.

Initializing Dreambooth
Dreambooth revision: 926ae204ef5de17efca2059c334b6098492a0641
Successfully installed fastapi-0.94.1 gitpython-3.1.31 google-auth-oauthlib-0.4.6 transformers-4.26.1


Does your project take forever to startup?
Repetitive dependency installation may be the reason.
Automatic1111's base project sets strict requirements on outdated dependencies.
If an extension is using a newer version, the dependency is uninstalled and reinstalled twice every startup.

[+] xformers version 0.0.17 installed.
[+] torch version 2.0.1+cu118 installed.
[+] torchvision version 0.15.2+cu118 installed.
[+] accelerate version 0.18.0 installed.
[+] diffusers version 0.14.0 installed.
[+] transformers version 4.26.1 installed.
[+] bitsandbytes version 0.35.4 installed.


Launching Web UI with arguments: --autolaunch --xformers --ckpt-dir E:\Artificial-Inteligence\CreationHelpers\ImageCreation\Models --listen --enable-insecure-extension-access --api --port 57816 --theme dark
Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json
Civitai Helper: No setting file, use default
ControlNet v1.1.204
ControlNet v1.1.204
Loading weights [cc6cb27103] from E:\Artificial-Inteligence\CreationHelpers\ImageCreation\Models\SD1.5Base\SD1.5PruneEma.ckpt
Creating model from config: E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Textual inversion embeddings loaded(0):
Model loaded in 5.3s (load weights from disk: 1.5s, create model: 0.5s, apply weights to model: 0.6s, apply half(): 0.5s, move model to device: 1.0s, load textual inversion embeddings: 1.1s).
Applying optimization: xformers... done.
Create LRU cache (max_size=16) for preprocessor results.
Create LRU cache (max_size=16) for preprocessor results.
CUDA SETUP: Loading binary E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cudaall.dll...
Running on local URL:  http://0.0.0.0:57816

To create a public link, set `share=True` in `launch()`.
Create LRU cache (max_size=16) for preprocessor results.
Startup time: 28.3s (import torch: 6.1s, import gradio: 1.3s, import ldm: 0.7s, other imports: 1.5s, setup codeformer: 0.3s, load scripts: 12.6s, create ui: 1.2s, gradio launch: 4.4s, scripts app_started_callback: 0.1s).
Saving backup of webui/extension state to E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\config_states\2023_06_09-11_52_47_Backup (pre-update).json.
Restarting UI...
Closing server running on port: 57816
Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json
Civitai Helper: No setting file, use default
ControlNet preprocessor location: E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-06-09 11:53:01,771 - ControlNet - INFO - ControlNet v1.1.222
Error loading script: main.py
Traceback (most recent call last):
  File "E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\modules\scripts.py", line 263, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py", line 35, in <module>
    from dreambooth.utils.model_utils import (
ImportError: cannot import name 'get_shared_models' from 'dreambooth.utils.model_utils' (E:\Artificial-Inteligence\Applications\ImageCreations\ImageGeneration\Automatic1111\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\utils\model_utils.py)

Running on local URL:  http://0.0.0.0:57816

To create a public link, set `share=True` in `launch()`.
Startup time: 6.6s (load scripts: 1.5s, create ui: 0.6s, gradio launch: 4.2s, scripts app_started_callback: 0.1s).
```


### Additional information

_No response_