Skip to content

[Bug]v4.17.3无法从远程地址访问 #5166

@Yaklo

Description

@Yaklo

What happened / 发生了什么

刚刚首次安装了最新的v4.17.3-amd64-win版本,只能从localhost:6185和127.0.0.1:6185进行访问,无法从任何远程地址(局域网/虚拟局域网)地址进行访问,参照文档修改了配置文件cmd_config.json中的dashboard.host和dashboard.port发现均不生效,例如修改port为16185,在浏览器中仍然只能从localhost:6185进行访问

Reproduce / 如何复现?

无须任何操作步骤,仅需安装AstrBot本体并启动

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

AstrBot-v4.17.3-amd64-win.exe

OS

Windows

Logs / 报错日志

注意:已在系统设置中启用debug日志

[2026-02-17 20:05:56.413] [Core] [INFO] [.main:71]: 使用指定的 WebUI 目录: C:\Server\AstrBot\resources\webui
[2026-02-17 20:05:56.414] [Core] [INFO] [.main:124]:
___ _... . ______ .___________.
/ \ / | || _ \ | _ \ / __ \ | |
/ ^ \ | (-------| |----| |
) | | |
) | | | | | ---| |----
/ /
\ \ \ \ | | | / | _ < | | | | | |
/ _____ \ .----) | | | | |\ ----.| |
) | | --' | | | /__/ \__\ |_______/ |__| | _| .||
/ ____/ ||

[2026-02-17 20:05:56.415] [Core] [DBUG] [core.core_lifecycle:80]: HTTP proxy cleared
[2026-02-17 20:05:56.415] [Core] [INFO] [core.core_lifecycle:106]: AstrBot v4.17.3
[2026-02-17 20:05:57.165] [Core] [INFO] [core.persona_mgr:35]: 已加载 0 个人格。
[2026-02-17 20:05:57.181] [Core] [INFO] [star.star_manager:461]: 正在载入插件 astrbot ...
[2026-02-17 20:05:57.196] [Core] [INFO] [star.star_manager:514]: Plugin astrbot (4.1.0) by Soulter: AstrBot 自带插件,包含人格注入、思考内容注入、群聊上下文感知等功能的实现,禁用后将无法使用这些功能。
[2026-02-17 20:05:57.196] [Core] [INFO] [star.star_manager:461]: 正在载入插件 builtin_commands ...
[2026-02-17 20:05:57.246] [Core] [INFO] [star.star_manager:514]: Plugin builtin_commands (0.0.1) by Soulter: AstrBot 自带指令,提供常用的对话管理、工具使用、插件管理等功能。
[2026-02-17 20:05:57.247] [Core] [INFO] [star.star_manager:461]: 正在载入插件 session_controller ...
[2026-02-17 20:05:57.254] [Core] [INFO] [star.star_manager:514]: Plugin session_controller (v1.0.1) by Cvandia & Soulter: 为插件支持会话控制
[2026-02-17 20:05:57.254] [Core] [INFO] [star.star_manager:461]: 正在载入插件 web_searcher ...
[2026-02-17 20:05:57.424] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: web_search
[2026-02-17 20:05:57.434] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: fetch_url
[2026-02-17 20:05:57.447] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: web_search_tavily
[2026-02-17 20:05:57.457] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: tavily_extract_web_page
[2026-02-17 20:05:57.469] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: web_search_bocha
[2026-02-17 20:05:57.471] [Core] [INFO] [star.star_manager:514]: Plugin astrbot-web-searcher (1.14.514) by Soulter: 让 LLM 具有网页检索能力
[2026-02-17 20:05:57.483] [Core] [INFO] [knowledge_base.kb_mgr:39]: 正在初始化知识库模块...
[2026-02-17 20:05:57.518] [Core] [INFO] [knowledge_base.kb_mgr:65]: KnowledgeBase database initialized: data\knowledge_base\kb.db
[2026-02-17 20:05:57.647] [Core] [INFO] [dashboard.server:237]: 正在启动 WebUI, 监听地址: http://127.0.0.1:6185
[2026-02-17 20:05:59.647] [Core] [INFO] [dashboard.server:276]:
✨✨✨
AstrBot v4.17.3 WebUI 已启动,可访问

➜ 本地: http://localhost:6185
➜ 默认用户名和密码: astrbot
✨✨✨
可在 data/cmd_config.json 中配置 dashboard.host 以便远程访问。
[2026-02-17 20:05:59.649] [Core] [INFO] [core.core_lifecycle:297]: AstrBot 启动完成。
[2026-02-17 20:05:59.656] [Core] [INFO] [utils.temp_dir_cleaner:127]: TempDirCleaner started. interval=600s cleanup_ratio=0.3
[2026-02-17 20:06:02.288] [Core] [INFO] [t2i.network_strategy:56]: Successfully got 2 official T2I endpoints.
[2026-02-17 20:06:04.926] [Core] [INFO] [utils.llm_metadata:63]: Successfully fetched metadata for 1601 LLMs.

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

Labels

area:webuiThe bug / feature is about webui(dashboard) of astrbot.bugSomething isn't workingpriority: p0will fix asap

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions