AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.35k stars 26.72k forks source link

[Bug]: Unable to connect 127.0.0.1:7860 #14549

Open jy373903 opened 9 months ago

jy373903 commented 9 months ago

Checklist

What happened?

when i start the app, it will open the website, but it show unable to connect, i had try other browser, all can't connect to 127.0.0.1 i had check host, it has line about 127.0.0.1 localhost

image image image

Steps to reproduce the problem

Start the application, Click start the application will open the website automatically

What should have happened?

The website should show the WebUI

What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome, Microsoft Edge

Sysinfo

Can't go webui

Console logs

Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.6.0-2-g4afaaf8a
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
Launching Web UI with arguments: --medvram-sdxl --theme dark --xformers --api --autolaunch
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
[-] ADetailer initialized. version: 23.11.1, num models: 9
2024-01-05 17:20:23,032 - ControlNet - INFO - ControlNet v1.1.419
ControlNet preprocessor location: F:\sd-webui-aki-v4.5\extensions\sd-webui-controlnet\annotator\downloads
2024-01-05 17:20:23,227 - ControlNet - INFO - ControlNet v1.1.419
sd-webui-prompt-all-in-one background API service started successfully.
Loading weights [7f96a1a9ca] from F:\sd-webui-aki-v4.5\models\Stable-diffusion\anything-v5-PrtRE.safetensors
Creating model from config: F:\sd-webui-aki-v4.5\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860
Loading VAE weights specified in settings: F:\sd-webui-aki-v4.5\models\VAE\animevae.pt

To create a public link, set `share=True` in `launch()`.
Startup time: 32.6s (prepare environment: 12.1s, import torch: 8.3s, import gradio: 1.5s, setup paths: 0.9s, initialize shared: 0.4s, other imports: 0.8s, setup codeformer: 0.2s, load scripts: 3.9s, create ui: 1.5s, gradio launch: 2.7s, add APIs: 0.1s, app_started_callback: 0.2s).
Applying attention optimization: xformers... done.
Model loaded in 5.3s (load weights from disk: 1.7s, create model: 0.5s, apply weights to model: 1.6s, load VAE: 1.1s, calculate empty prompt: 0.2s).

Additional information

No response

ice-fly commented 9 months ago

Are you or someone else running a server on that port? If so , might not be able to bind try --port xxxx with a different port number.

jy373903 commented 9 months ago

I had check with command netstat -an, but there had not listening on 7860 before i start the stable-diffusion-webui, and i also try another port, but browser still show can't connect to the page

Are you or someone else running a server on that port? If so , might not be able to bind try --port xxxx with a different port number.

AlUlkesh commented 9 months ago

Maybe some too aggressive Anti Virus or Firewall?

Also I notice my hosts file looks different. Not sure if it makes a difference.

# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost