PojavLauncherTeam / PojavLauncher

A Minecraft: Java Edition Launcher for Android and iOS based on Boardwalk. This repository contains source code for Android platform.
GNU General Public License v3.0
6.08k stars 1.21k forks source link

[BUG] <Can't play LAN if PC is hosting> 1.20.6 #5493

Open XoxeRequin opened 1 month ago

XoxeRequin commented 1 month ago

Describe the bug

A open-to-LAN world does not show on the Play Multiplayer section of Minecraft. If I open the world on my phone and open it to LAN, I can join it by putting the ip adress and port, and direct connect to the world on my computer. But if the world is openned on my PC and I try doing the same it shows Failed to connect the server Failed to log in: Invalid session (try restarting your game and the launcher) I tried to run vanilla on both of them, then fabric on both of them. The issue is always the same. I tried entering a server (top.clubcraft.net), so I would know the issue is the LAN, and it joined just fine.

The log file and images/videos

latestlog.txt Screenshot_20240525_151817_PojavLauncher (Minecraft Java Edition for Android)

Steps To Reproduce

1. With Pojav open on my phone, with the 1.20.6 selected, using an offline account and "jdk21 arm64 20240423 release" installed, I select the Play button.
2. After entering the Minecraft, I go to Play Multiplayer, then Direct Connection, type the ip adress of my PC and port of the world, which is as of right now 10.0.0.5:52541, click Join Server and get the error Failed to connect the server Failed to log in: Invalid session (try restarting your game and the launcher).

Expected Behavior

It should enter the LAN world

Platform

- Device model: samsung SM-G781B
- CPU architecture: arm64
- Android version: 13
- PojavLauncher version: edelweiss-20240525-94bc4eb-v3_openjdk

Anything else?

I don't know if I'm doing something wrong cuz I don't have a lot of experience with Pojav (I literally downloaded today to try to play on LAN from my phone), but I tried looking for this issue and didn't find anything especific. I think it could be something related to using a Jack Sparrow version of it since I can't afford Minecraft, but idk.

artdeell commented 1 month ago

By chance, are you using TLauncher on PC (or anjy other skin system/authenticator)? They may provide their own keys for the LAN server, making it inaccessible for true offline-mode clients (like Pojav)

XoxeRequin commented 1 month ago

I was using TLauncher but I uninstalled it and am using Legacy Launcher which has ely.by skins. I disabled this feature on it but I'm not sure if it did actually disabled anything. Still not able to connect from my phone but I think the issue is very much related to that. image image I also tried that without fabric. Is that any folder that I need to delete to make 100% sure it's using the default auth system? Or recommended launcher that won't cause any problem? (other than Microsoft's lol) I deleted the whole .minecraft\libraries folder and the issue still persists.

Cube5x59999 commented 1 month ago

I deleted the whole .minecraft\libraries folder and the issue still persists.

You deleted the core files of minecraft, it ain't going to solve anything