The program running in the command prompt connects to your browser through a local web server.
This connection uses the URL 127.0.0.1:7860. You can create a shortcut for the **webui-user.bat** file to simplify access.
Place the shortcut on your desktop or another convenient location. This setup ensures you can quickly launch the interface whenever needed.
Using a local web server like this allows seamless communication between your browser and the program.
Instead of manually navigating to the file each time, the shortcut provides easy access with a single click. It saves time and avoids unnecessary steps.
Organizing your workspace this way improves efficiency. You no longer have to search for the file or repeatedly open the command prompt.
The shortcut streamlines the process for quick testing or regular use, making it user-friendly and more practical for daily tasks.
127.0.0.1:7860: The Site Is Unavailable
I attempted to install and set up everything for Automatic1111 to run Stable Diffusion.
However, when I accessed 127.0.0.1:7860, it showed the error, “The site is unavailable.” I am unsure whether my installation is incomplete or incorrectly configured.
I am running Windows 11 with Python 3.10.6 and Python 3.11 installed. I am not sure if the issue is related to these versions. Any advice would be appreciated.
How to Fix the 127.0.0.1:7860 Issue?
Method 1: Start with webui-user.bat
You need to execute webui-user.bat every time you begin an SD session. Keep the black command prompt window open throughout the session, as it runs a local server connecting the program to your browser via 127.0.0.1:7860.
Without this, the interface cannot function. To make it convenient, create a desktop shortcut for webui-user.bat.
Method 2: Check Remote Deployment
When deploying a text-generation-webui on a remote server, running python server.py may display:
bash
Copy code
Running on local URL: http://127.0.0.1:7861
I could not create a share link. Check your internet connection or visit: https://status.gradio.app
Ensure the antivirus or firewall is not blocking the binary file located at:
/home/mojo/miniforge3/envs/textgen/lib/python3.10/site-packages/gradio/frpc_linux_aarch64_v0.2
To resolve this, edit the server.py launch function:
python
Copy code
share=True, server_name=’0.0.0.0′, server_port=7860
Additionally, configure nginx as follows:
nginx
Copy code
sudo nano /etc/nginx/sites-available/default
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;
}
}
Run nginx -t to test the configuration. If it succeeds but you still encounter “localhost refused to connect,” check for additional blocks from firewalls, antivirus, or server-side misconfigurations.
Other Considerations
Verify that you have installed all required dependencies for Stable Diffusion or text-generation-webui.
Ensure you use compatible Python versions without conflicts. Configure network settings and permissions to allow access to 127.0.0.1 for remote setups.