Openshift Minecraft服务器超时

时间:2016-01-02 06:58:14

标签: server openshift minecraft

我最近使用Openshiftthis Tutorial上创建了一个Minecraft服务器。 在我进行端口转发后,我能够在我的服务器中获得Minecraft中的连接。但我无法登录!它只是以消息结束:Timed-Out。 在服务器日志中,我只看到,我所知道的:我失去了连接。这是日志:

2016-01-01 17:29:17 [INFO] Starting minecraft server version 1.
2016-01-01 17:29:17 [INFO] Loading properties
2016-01-01 17:29:17 [INFO] Default game type: SURVIVAL
2016-01-01 17:29:17 [INFO] Generating keypair
2016-01-01 17:29:18 [INFO] Starting Minecraft server on 127.2.1
2016-01-01 17:29:18 [INFO] Preparing level "world"
2016-01-01 17:29:18 [INFO] Preparing start region for level 0
2016-01-01 17:29:20 [INFO] Preparing spawn area: 52%
2016-01-01 17:29:20 [INFO] Done (1.911s)! For help, type "help"
2016-01-01 17:30:41 [SEVERE] Reached end of stream
2016-01-01 17:30:41 [INFO] /127.2.105.129:29361 lost connection
 java.io.IOException: Bad packet id 72
    at ei.a(SourceFile:193)
    at ci.i(SourceFile:250)
    at ci.c(SourceFile:16)
    at cj.run(SourceFile:94)
2016-01-01 18:10:21 [INFO] /127.2.105.129:32075 lost connection
 java.io.IOException: Bad packet id 72
    at ei.a(SourceFile:193)
    at ci.i(SourceFile:250)
    at ci.c(SourceFile:16)
    at cj.run(SourceFile:94)
2016-01-01 18:10:21 [INFO] /127.2.105.129:32098 lost connection
 java.io.IOException: Bad packet id 72
    at ei.a(SourceFile:193)
    at ci.i(SourceFile:250)
    at ci.c(SourceFile:16)
    at cj.run(SourceFile:94)

2 个答案:

答案 0 :(得分:0)

java.io.IOException: Bad packet id 72交易将是一个格式错误的数据包。我已经阅读了从未指定正确端口到尝试连接不兼容的mod版本的任何内容。

在您的情况下,您似乎明确定义了server-ip中的server.properties。在起始日志中:

2016-01-01 17:29:18 [INFO] Starting Minecraft server on 127.2.1

127.2.1不是有效地址,所以对我来说有意义的是数据包传输会出错。将此字段留空(默认情况下)或提供有效的IPv4地址。

我非常确信这是正在发生的事情,因为您提供的教程也会让您设置此字段。

答案 1 :(得分:0)

Bad packet id 72表示您正在尝试登录端口配置不正确的服务器。在日志中,您提到了2016-01-01 17:29:18 [INFO] Starting Minecraft server on 127.2.1.

解决方案: (我已将测试服务器配置为与您的服务器相似) 1.转到server.properties,然后在server-ip:部分中删除内容。这将使其成为默认ip

  1. 转到路由器主页,并将服务器端口转发到25565

  2. 它现在应该可以工作

祝您新服务器上好运! :)