October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

如何解决 Minecraft 服务器连接错误:Java、Bedrock、Realms 与端口排查指南

从 Outdated Client 到 Connection timed out,系统排查 Minecraft Java、Bedrock、Realms 和自建服务器的连接错误。
Length2 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

解决 Minecraft 服务器连接错误,最有效的顺序不是反复重启路由器,而是先确认版别、版本、地址和端口,再判断问题发生在账户、权限、本机网络还是服务器端。

先看故障范围:只有你无法连接,优先检查客户端、账户、地址和本机网络;所有人都无法连接,优先检查服务器状态和日志;局域网能连、外网不能连,重点检查端口转发、NAT、公网 IP 和防火墙;出现 Outdated Client 或 Outdated Server,先处理版本;出现 Unknown host,先处理域名和 DNS。

先确认:Java 和 Bedrock 不能直接互连

Java Edition 与 Bedrock Edition 使用不同的服务器体系,原生不能直接加入彼此的服务器。Java 玩家必须连接 Java 服务器,Bedrock 玩家必须连接 Bedrock 服务器。只有在 Java 服务器额外配置了跨平台桥接方案时,Bedrock 玩家才可能加入;这通常还需要单独的 Bedrock 入口、端口和兼容的身份验证组件。

Realms 也只能在同一版别内部跨设备联机:Java Realm 不会自动变成 Bedrock Realm。

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Minecraft | Java & Bedrock Deluxe Collection | Windows Digital Code
  • DELUXE COLLECTION — Includes Minecraft: Java & Bedrock Edition, three Bedrock add-ons, three exclusive Character Creator items, and 700 Minecoins.
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
  • SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).

最快的 8 步排查流程

  1. 关闭并重新启动 Minecraft、启动器和设备。
  2. 确认自己使用的是 Java 还是 Bedrock,以及正式版、Preview、Beta 或 Snapshot。
  3. 更新到服务器要求的精确版本,模组服务器还要核对加载器和模组版本。
  4. 退出并重新登录 Microsoft 账户。
  5. 重新核对服务器域名或 IP、端口,以及 Java/Bedrock 入口。
  6. 询问其他玩家是否也无法连接,并尝试加入另一台已知正常的服务器。
  7. 暂时关闭 VPN,检查防火墙和杀毒软件是否拦截 Minecraft 或 Java。
  8. 仍然失败时,把完整错误信息和诊断结果交给服务器管理员。

重启路由器可以刷新 DHCP 或网络会话,但无法修复版本不匹配、白名单、账户权限、服务器崩溃或 CGNAT。

按错误提示定位问题

错误提示 通常意味着什么 优先处理
Outdated Client 客户端版本低于服务器要求 更新客户端,或在 Java 启动器的 Installations 中切换到服务器版本
Outdated Server 服务器版本低于客户端要求 由管理员更新服务器,或让客户端暂时运行服务器版本
Can't connect to server 地址、端口、服务器状态或防火墙异常 核对地址和端口,并确认其他玩家能否进入
Connection timed out 端口不可达、转发错误、防火墙拦截或服务器离线 用另一网络测试;管理员检查监听、转发和防火墙
Connection refused 主机可达,但没有服务监听该端口,或连接被主动拒绝 检查服务端进程、监听端口和端口配置
Unknown host 域名拼写、DNS 或地址错误 删除多余空格,用数字 IP 测试并检查 DNS
Failed to verify username 账户会话或身份验证异常 退出游戏和启动器,重新登录 Microsoft 账户
Multiplayer is disabled Bedrock 账户、家庭安全或 Xbox 隐私设置禁止多人游戏 允许多人游戏、跨网络游戏和加入俱乐部
You are not white-listed 玩家不在服务器白名单中 让管理员添加玩家并重新加载白名单
You are banned 玩家被服务器封禁 联系服务器管理员
Server is full 已达到最大玩家数 等待空位或让管理员调整人数上限

第一步:核对版别和精确版本

Java Edition

进入主菜单的 Multiplayer,使用 Direct Connection 或 Add Server。Java 服务器通常要求客户端精确匹配服务器协议版本。原版客户端不能随意加入 Forge、Fabric、NeoForge、Quilt、Paper 或其他需要特定模组、加载器和插件组合的服务器。

如果出现 Outdated Client,更新客户端或在启动器的 Installations 中选择服务器要求的 release;如果出现 Outdated Server,通常需要服务器管理员更新服务端。不要把 Snapshot 当作普通正式版使用。

Bedrock Edition

进入 Play → Servers。朋友世界通常位于 Friends 标签;自定义服务器需要填写名称、地址和端口。正式版、Beta/Preview 和 Bedrock Dedicated Server 的协议可能不同,不能只看大版本号。微软的 Bedrock Dedicated Server 文档特别提醒,小版本甚至补丁版本也不一定使用相同协议。

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

第二步:重新确认服务器地址和端口

向管理员重新索要以下信息:

  • 域名或公网 IP;
  • 端口;
  • Java 还是 Bedrock 入口;
  • 是否需要专用连接地址或 SRV 记录;
  • 是否更换过主机商、公网 IP 或端口。

常见错误包括把 Java 地址填进 Bedrock、把 Bedrock 端口填进 Java、漏写非默认端口、复制了空格或旧 IP,以及在局域网内使用路由器不支持 NAT loopback 的公网域名。

Rank #2
Minecraft | Java & Bedrock Ultimate Collection | Windows Digital Code
  • ULTIMATE COLLECTION — Includes Minecraft: Java & Bedrock Edition, five Bedrock add-ons, five exclusive Character Creator items, and 1000 Minecoins.
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
  • SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).

Bedrock Dedicated Server 的默认配置示例通常包含 server-port=19132 和 server-portv6=19133,但实际端口必须以服务器的 server.properties 为准,不能盲目套用默认值。可参考微软的服务器属性文档。

第三步:判断是玩家问题还是服务器问题

  • 所有人都无法连接:服务器可能宕机、正在维护、更新后崩溃,或公网端口、主机商网络出现故障。
  • 只有你无法连接:优先检查版本、地址、账户权限、防火墙、VPN、DNS 和本地网络。
  • 同一局域网无法连接:检查是否真的在同一网络、是否使用了正确的内网地址,以及主机防火墙是否允许 Minecraft。
  • 局域网能连、外网不能连:重点检查端口转发、错误的内网目标 IP、双重 NAT、CGNAT、公网 IP 变化和防火墙。

能打开服务端控制台不等于公网玩家一定能连。服务端进程运行、端口监听、操作系统防火墙放行、路由器转发和公网可达,是不同层次的问题。

第四步:重新登录 Microsoft 账户

遇到 Failed to verify username、Authentication servers are currently down、Realm 列表异常或 Bedrock 多人服务失败时,可以按以下顺序操作:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. 退出 Minecraft 和 Minecraft Launcher。
  2. Windows 用户同时退出 Xbox 应用和 Microsoft Store 账户。
  3. 重启设备。
  4. 重新登录同一个 Microsoft 账户。
  5. 再次尝试加入服务器。

这只能修复会话、身份验证或服务状态问题,不能修复错误 IP、未开放端口、服务器崩溃、白名单或版别不匹配。更多 Java 建议见官方 Java 多人连接排错页面。

第五步:检查 Bedrock 权限和主机订阅

Bedrock 玩家应检查 Microsoft/Xbox 隐私设置是否允许多人游戏、加入俱乐部和跨网络游戏。儿童账户或家庭组设置可能会阻止多人功能;主机上还要确认登录的是正确的 Microsoft 账户。

Rank #3
Minecraft | Standard Edition | XBOX Digital Code
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that is unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world full of surprises.
  • SURVIVAL ADVENTURES — Face mysterious foes, travel across varied landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play solo or join friends in local split-screen and cross-platform play across console, mobile, and PC. Online multiplayer supports up to 8 players.
  • COMMUNITY PLAY — Connect with players on community servers, or subscribe to Realms Plus (sold separately) to play with up to 10 friends on a private server.

Xbox、Nintendo Switch 和 PlayStation 上的在线多人游戏可能分别需要 Xbox Game Pass Core、Nintendo Switch Online 或 PlayStation Plus。具体要求取决于平台和账户状态,详见官方 Bedrock 连接排错说明。

第六步:检查防火墙、杀毒软件和 VPN

玩家端

  • 关闭 VPN 后重新测试。
  • 检查 Windows Defender 防火墙是否允许 Minecraft Launcher、Minecraft 或 javaw.exe。
  • 临时暂停第三方杀毒软件的网络防护,仅用于定位问题。
  • 公司、学校或公共 Wi-Fi 屏蔽游戏流量时,尝试手机热点。

不要长期关闭防火墙。确认原因后应恢复防火墙,只建立针对 Minecraft 或 Java 的明确允许规则。

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

服务器端

管理员必须同时检查操作系统防火墙、云主机安全组、路由器防火墙以及服务端实际端口。Bedrock Dedicated Server 应放行 server.properties 中配置的端口;不要假设所有服务器都只需要某个固定 TCP 端口,实际协议和配置必须以服务端文档为准。

第七步:自建服务器检查公网连接

公网连接路径是:

玩家 → 公网 IP/域名 → 路由器 → 端口转发 → 防火墙 → 服务端监听

管理员应逐项确认:

  1. 服务器有固定内网 IP,或路由器做了 DHCP 保留。
  2. 端口转发目标是当前正确的内网 IP。
  3. 外部端口与服务端监听端口一致,或映射关系明确。
  4. 操作系统防火墙和云主机安全组允许连接。
  5. 服务器进程确实监听该端口。
  6. 路由器不是双重 NAT,ISP 也没有使用 CGNAT。
  7. 公网 IP 没有变化,域名 DNS 指向当前 IP。
  8. server-ip 没有绑定到错误的网卡。

如果路由器 WAN 地址本身是私有地址,或前面还有一台上级路由器,入站连接可能被 CGNAT 或双重 NAT 阻断。局域网测试成功不能证明公网配置正确。应使用不在同一 Wi-Fi 下的设备,例如手机热点,进行测试。

Rank #4
Minecraft
  • Skins! We have biome settlers, city folk, town folk, and more!
  • The Nether and all its inhabitants. Fight Ghasts and make friends with Pigmen
  • Cross platform play for up to five players between Pocket Edition and Windows 10
  • Revamped touch controls, controller support, and a controller mapping screen
  • Enhanced Weather effects! Accumulating snow and more

Java 官方排错资料也建议检查路由器 NAT 类型、VPN、自定义 DNS 和网络稳定性;必要时可尝试有线连接。

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

第八步:排查 DNS 与“Unknown host”

Unknown host 通常来自域名拼写错误、DNS 记录缺失、旧 IP、错误的 A/AAAA/SRV 记录、VPN 或本地 DNS 缓存。玩家可以删除服务器条目后重新添加、用数字 IP 测试、关闭 VPN 或换手机热点。

管理员应检查 A、AAAA 和 SRV 记录是否指向当前服务器,并确认域名解析成功不代表端口一定可连接。DNS 变更何时生效取决于缓存和 TTL,不能保证固定传播时间。更换 DNS 只能解决部分解析路径问题,不能修复服务器离线、版本不匹配或端口未转发。

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

白名单、封禁和人数上限

Java

管理员应检查玩家名称、UUID、白名单、封禁列表和最大人数。使用代理服务器时,还要确认白名单配置在正确的后端实例上。You are not white-listed 是权限问题,而 Connection timed out 通常应先检查网络可达性。

Bedrock Dedicated Server

启用 allow-list=true 后,只有写入 allowlist.json 的玩家才能加入。修改后可在控制台执行:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Minecraft - Bedrock Edition PS4
  • Play and share with friends on console, mobile and Windows 10
  • discover community creations in the new in-game store
  • access new mini games and game modes through servers
/allowlist reload
/allowlist add <GamerTag>
/allowlist remove <GamerTag>

Gamertag 含空格时使用引号,例如:

/allowlist add "Example Player"

相关规则见微软的Bedrock Dedicated Server 指南。

Realms 连接失败怎么办

Realms 是官方云托管服务器,通常不需要 Realm 所有者保持在线。加入失败时,依次确认:

  • Realm 订阅仍有效且 Realm 处于激活状态;
  • 邀请使用的是正确的 Microsoft 账户和 Gamertag;
  • 客户端与 Realm 使用同一版别并已更新;
  • 主机平台在线多人服务和必要订阅正常;
  • 退出账户、重启游戏并重新登录;
  • Realm 世界或备份没有出现加载问题。

被邀请加入朋友的 Realm 通常不需要购买自己的 Realm 订阅,但主机平台的在线多人订阅要求仍可能适用。可查看官方 Realm 加入说明。

管理员专项清单

Java 服务端

  1. 启动日志是否显示成功启动,是否接受 EULA。
  2. 是否出现端口占用、Java 异常、世界加载失败或内存不足。
  3. server-ip 和 server-port 是否正确。
  4. 操作系统防火墙、云安全组和路由器是否放行。
  5. 公网 IP、DNS、端口转发和内网 IP 是否仍有效。
  6. 白名单、封禁列表和人数上限是否正常。
  7. 最近更新的插件、模组、代理是否导致崩溃。

Bedrock Dedicated Server

  1. 检查 server-port、server-portv6 和防火墙。
  2. 检查 allow-list、allowlist.json 和远程身份验证设置。
  3. 确认客户端和服务器协议版本匹配。
  4. Windows 本机客户端连接服务器时,检查 Bedrock 文档所述的 loopback 限制。
  5. 确认服务器没有绑定错误网卡,也不在无法接收入站连接的 CGNAT 后面。

什么时候该改用 Realms 或托管方案

少量朋友、低维护:Realms 更适合不想处理端口转发、防火墙、公网 IP 和服务器 24/7 运行的玩家。官方页面列出的美国美元价格会随时间、地区和页面状态变化;购买前应以官方 Realms 页面为准。

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

模组、插件和完整控制:自建 Java Server 或 Bedrock Dedicated Server 更灵活,但需要自行维护主机、备份、更新、防火墙、端口和安全性。官方 Java 服务端软件下载见Minecraft Server Download。

Java 与 Bedrock 混玩:先确认服务器是否配置了跨平台桥接,不要只因为产品写着“支持多人”就假定两种版别互通。若问题只是版本、权限、白名单或端口配置,购买托管服务通常不会解决根因。

交给管理员的诊断模板

Minecraft 版别:Java / Bedrock
平台:Windows / macOS / Linux / Xbox / PlayStation / Switch / iOS / Android
客户端版本:
服务器类型:LAN / 朋友世界 / Realms / Java Server / Bedrock Dedicated Server
服务器版本:
连接地址:
端口:
完整错误信息:
是否只有我无法连接:是 / 否
其他玩家能否连接:是 / 否
局域网内是否能连接:是 / 否 / 不适用
是否最近更新过客户端或服务器:
是否使用模组、插件、VPN 或代理:
我已尝试的步骤:

The Bottom Line

先查 Java/Bedrock 版别、精确版本、地址和端口,再区分玩家端与服务器端问题。只有你失败时检查账户、权限、防火墙和 DNS;所有人失败时让管理员检查服务端日志、监听、端口转发、NAT 和公网可达性。

Quick Recap

Bestseller No. 4
Minecraft
Minecraft
Skins! We have biome settlers, city folk, town folk, and more!; The Nether and all its inhabitants. Fight Ghasts and make friends with Pigmen
$6.99
Bestseller No. 5
Minecraft - Bedrock Edition PS4
Minecraft - Bedrock Edition PS4
Play and share with friends on console, mobile and Windows 10; discover community creations in the new in-game store
$42.98

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How To Create Custom Stickers & Shoutouts In Monster Hunter WildsMonster Hunter WildsBlog20min
  2. How to Get XL Gogoat in Pokemon Legends Z-A (An Extra-Large Gogoat)Pokemon Legends Z-ABlog20min
  3. How to Get Rotting Lightbringer in Diablo 4Diablo 4Blog17min
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.