The URL 127.0.0.1:7860 is used to connect your browser to a local web server created by a program.

This server communicates with the application running in the CMD window, allowing the browser to interface with the program.

To simplify access, you can create a shortcut to the webui-user.bat file on your desktop or another convenient location.

127.0.0.17860

Common Issue: “The Site is Unavailable”

When setting up software like Automatic1111’s Stable Diffusion on Windows 11, this error may appear if the installation is incomplete or if certain components are not functioning correctly.

Below are methods to resolve the problem.

Solutions to Fix the Issue

Solutions to Fix the Issue

Method 1: Running webui-user.bat

  • Ensure you run webui-user.bat each time you start a Stable Diffusion session.

  • Keep the CMD window open while using Stable Diffusion. This window manages the local server that connects to 127.0.0.1:7860.

  • Create a desktop shortcut for webui-user.bat for easier access.

Method 2: Deploying Text-Generation WebUI on a Remote Server

If running on a remote server, you may encounter additional challenges. To address these:

  1. Check Server Configuration
    • When running python server.py, confirm the following:
      • The output mentions a local URL like http://127.0.0.1:7861.
      • Any errors, such as inability to create a share link, may relate to antivirus, firewalls, or blocked binaries. Ensure no software interferes with the file located at:
        /home/mojo/miniforge3/envs/textgen/lib/python3.10/site-packages/gradio/frpc_linux_aarch64_v0.2
  2. Modify server.py
    • Edit the server launch function:
      share=True, server_name=’0.0.0.0′, server_port=7860
  3. Using Nginx as a Proxy

Configure Nginx to forward requests:
server {

    listen 80;

    server_name 209.73.86.100;

    location / {

        proxy_pass http://localhost:7860;

        proxy_set_header Host $host;

        proxy_set_header X-Real-IP $remote_addr;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

  • Verify the configuration with nginx -t.
  1. Test the Connection
    • If accessing http://127.0.0.1:7860 results in “localhost refused to connect,” confirm that:
      • The server is running on the correct port.
      • Firewall or network settings are not blocking access.

If the issue persists after following these steps, verify Python version compatibility and review the installation guide for any missed prerequisites.

Richard is an experienced tech journalist and blogger who is passionate about new and emerging technologies. He provides insightful and engaging content for Connection Cafe and is committed to staying up-to-date on the latest trends and developments.