我無法透過家庭網路連接到一台特定的 Minecraft 伺服器。我嘗試使用兩台獨立的電腦(一台使用有線連接,另一台使用無線)進行連接,但沒有成功。但是,我能使用行動熱點連接到伺服器,這確認我使用的是正確的 Minecraft 版本 (1.14.3) 和 IP 位址。我還可以連接到多個其他伺服器,只是我遇到了問題。伺服器上的其他玩家沒有出現任何連線問題。
所有這些讓我相信問題出在我的路由器/數據機配置。我正在使用一個Sagemcom Gateway F@ST3864V2
.
我對路由器設定了解不多,因此任何關於可能導致此問題的原因或我應該修改哪些設定的建議將不勝感激!
更新#1:
這是我嘗試連接到伺服器時的日誌:
[19:49:01] [Client thread/INFO]: Connecting to <ip>, 25565
[19:49:01] [Server Connector #1/ERROR]: Couldn't connect to server
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.charAt(String.java:646) ~[?:1.8.0_51]
at io.netty.bootstrap.Bootstrap.isBlockedServer(Bootstrap.java:383) ~[patchy-1.1.jar:?]
at io.netty.bootstrap.Bootstrap.checkAddress(Bootstrap.java:364) ~[patchy-1.1.jar:?]
at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:180) ~[patchy-1.1.jar:?]
at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:162) ~[patchy-1.1.jar:?]
at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:150) ~[patchy-1.1.jar:?]
at jb.a(SourceFile:318) ~[1.14.3.jar:?]
at cza$1.run(SourceFile:66) [1.14.3.jar:?]
我可以透過終端 ping 伺服器 IP,沒有任何問題:
Pinging <ip> with 32 bytes of data:
Reply from <ip>: bytes=32 time=223ms TTL=51
Reply from <ip>: bytes=32 time=223ms TTL=51
Reply from <ip>: bytes=32 time=223ms TTL=51
Reply from <ip>: bytes=32 time=222ms TTL=51
Ping statistics for <ip>:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 222ms, Maximum = 223ms, Average = 222ms
追蹤路由也成功:
Tracing route to <ip> over a maximum of 30 hops
1 <1 ms <1 ms <1 ms 192.168.0.1
2 6 ms 6 ms 6 ms 1.42.0.1
3 * * * Request timed out.
4 6 ms 5 ms 5 ms 198.142.249.242
5 160 ms 160 ms 160 ms 203.208.131.205
6 161 ms 163 ms 166 ms 62.115.8.202
7 223 ms 223 ms 233 ms 62.115.114.87
8 214 ms 214 ms * 62.115.141.245
9 223 ms 223 ms 223 ms 80.91.246.36
10 223 ms 223 ms 223 ms 62.115.145.91
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 222 ms 223 ms 223 ms <ip>
Trace complete.