![为什么我无法加入 Ubuntu 上的 Minecraft LAN 服务器?](https://linux22.com/image/1179232/%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E6%97%A0%E6%B3%95%E5%8A%A0%E5%85%A5%20Ubuntu%20%E4%B8%8A%E7%9A%84%20Minecraft%20LAN%20%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%9F.png)
我在玩 Minecraft 时遇到了一些麻烦。我家有一个 LAN 服务器,上面有一堆模组,可以让我们一起玩,但我的电脑无法连接到它。每当我尝试登录时,都会收到以下错误消息:
io.netty.channel.ConnectTimeoutException: connection timed out:
有谁知道如何解决这一问题?
Ubuntu 版本:20.04
Minecraft版本:1.12.2(全球均使用此版本)
输出sudo ufw status
:
Status: inactive
输出sudo iptables -L
:
Chain INPUT (policy ACCEPT)
target prot opt source destination
LIBVIRT_INP all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
LIBVIRT_FWX all -- anywhere anywhere
LIBVIRT_FWI all -- anywhere anywhere
LIBVIRT_FWO all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
LIBVIRT_OUT all -- anywhere anywhere
Chain LIBVIRT_FWI (1 references)
target prot opt source destination
ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain LIBVIRT_FWO (1 references)
target prot opt source destination
ACCEPT all -- 192.168.122.0/24 anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain LIBVIRT_FWX (1 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain LIBVIRT_INP (1 references)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:67
Chain LIBVIRT_OUT (1 references)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootpc
ACCEPT tcp -- anywhere anywhere tcp dpt:68