mojira.dev
MCPE-162670

Random LAN Games

On the friends tab after pressing play, there are random LAN games. When I try to join them, they just say they cannot connect. Their names are blank and they say offline. On my phone, it happens even on cellular data. It's probably just something going on with my account but I thought i'd report it and see if it can be reproduced and fixed.

Linked issues

Attachments

Comments 7

This is caused by the default ping response of servers hosted with Aternos.

 

I work at Aternos and we've looked into this issue for a few hours now, trying out all kind of different options.

When our Bedrock dedicated servers go offline, we redirect the DNS record to a fallback server, that shows this "Offline" ping with the iron golem emoji, and when the player tries to connect we respond in a kick message with more information, e.g. that the server is currently offline, or already starting etc.

This is implemented using this library: https://github.com/PrismarineJS/bedrock-protocol 

We updated this library ca. a week ago and it now includes a longer response to the offline ping which includes information about the port. After trying all kinds of combinations we discovered that this bug is happening when the ping response includes a different IPv4 port than what the server is actually trying to connect to and what the player entered in the server list.

Our guess is that the client tries to match ping responses to servers in the server list by IP + port and when it can't find a matching one, it just assumes that it's a LAN game. This is not only an annoying bug but a potentially dangerous exploit as it could be used by malicious actors to display anything on the "Friends" tab.

For now, we've switched back to the "old" ping responses, which don't include port information, which seems to temporarily resolve this problem. Unfortunately, in our current setup it's not possible for us to determine which port the client connects to, because we run our fallback server on almost all available ports through iptables and an Nginx proxy as a load balancer.

 

Ok. I understand most of it at least. I hope it gets fixed soon.

Does this issue still occur in the current version?

Nvm, just happened to me yesterday. The names on these random games are not always “unknown”. Often they look like real games and it gives a disturbing impression that someone has hacked into your Friends list.

In my case, in latest preview (1.20.70.20), I saw Mineville server showing up as a LAN advertised game in my friends tab, and I was able to connect to click on the LAN entry, and successfully join the Mineville server.  The LAN entry was generally quick to disappear though, and I was only able to connect through the entry once.

In 1.20.80.21 Preview, This Thing Will happen Easily, Just Turn On The New Server UI Then Turn Off It.

I also keep getting this bug, primarily with Aternos servers, though sometimes it seems like I've gotten legitimate looking third-party servers sometimes, but when I try to join it, it doesn't let me.

 

[media]

MarFan120

(Unassigned)

908054

Confirmed

Multiple

Android 10 and Windows 10 Pro

1.19.30, 1.20.1 Hotfix, 1.20.60, 1.20.62 Hotfix, 1.21.51 Hotfix

Retrieved