jhead / phantom

Use your own Minecraft server with your Xbox or PS4 and play with friends!
MIT License
610 stars 75 forks source link

Ubuntu - Connection timeout #173

Closed cruikshj closed 1 year ago

cruikshj commented 1 year ago

I am unable to connect to a Minecraft server when phantom is running on an Ubuntu VM server. The server does appear in the list appropriately, with the correct information. The "Ping/Pong" connection seems to be working. But when I attempt to connect, the connection times out. No logs from phantom indicate any issues. Additionally, this connection has worked in the past. I suspect a patch to Ubuntu caused the change.

I am using fresh install Ubuntu 20.04 with latest patches. ufw status is "inactive".

Running phantom from a Windows VM on the same hypervisor works without issue, eliminating other parts of the networking stack as root cause.

I have attempted explicitly disabling sp_filter in /etc/sysctl.conf as well as /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts, which did not help.

I have also attempted binding to the server's IP address explicitly, which did not help.

Any advice would be appreciated.

cruikshj commented 1 year ago

Upgraded to 22.04. Same results.

cruikshj commented 1 year ago

Found the issue. I host these VMs on Hyper-V (Gen2). Apparently, there is a bug in Hyper-V with Linux guest VMs that breaks UDP traffic. This impacts phantom in the same way it affects MC itself.

References: