ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.

用户在启动 Stable Diffusion WebUI Forge 时,通过 bat 脚本(如 webui-user.bat )或 Python 指令触发,Gradio 在初始化时检测到 localhost 不可访问,抛出此错误。





![[AI Agent 智能体] GLM-5.2 还是不可用的状态](https://www.chat-gpts.plus/wp-content/uploads/2026/06/ai_cover_5-620-768x403.jpg)


