-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Session error when playing LAN with Offline accounts #44
Comments
What account type are you using? |
Offline account. |
Also, i forgot to comment: once, the log said something about receiving the wrong amount of data in the packets. I'll search for the log file containing the message. |
I got a friend of mine to test this on PrismLauncher. It works fine, so it's really a PollyMC issue. |
I found the log file. Note that this was in a modded session of 1.7.10, so it's not absolutely clear if it can be used to track the issue.
|
@imsamuka What version of Java are you using? I think there might be connectivity issues in some Java versions compatible with 1.7.10, you could try this version of Java. |
Java 1.8.0_352 But how could this be the issue? Since both instances are running the same version of Java? |
I'm sick of this, i bought a microsoft minecraft account. But i still have to solve the issue, because my friend doesn't have one. I found a lead to the problem; when you create a Offline account in the Accounts window, if you try to connect to a LAN server with it, it fails. When you use a Microsoft account on offline mode and select a different name, you can connect correctly.
But it's still an unresolved issue, since as i said before, when you use a Microsoft account on offline mode, you can connect. I'll test the "PolyMC-Offline" fork too and test some things, if it works, i'll submit a PR here |
Sorry I took a while to get back to you, I've done some testing myself and I can reproduce the issue. What I've found is that offline accounts can't join each others LAN games but they can join What's even stranger is I remember this used to work fine but I downloaded an older version of Polly but it gave me the same invalid session error. I'll keep digging and try to figure out how to fix this.
I think this will probably be a big clue in fixing it. |
@fn2006 Maybe we can pinpoint the issue with git bisect then? |
Nah, it turns out I was misremembering and offline account LAN never worked, me and my friend were actually using ely.by accounts on LAN. |
Alright, I've found the problem but I'm not sure how to go about fixing it. Personally I would just use ely.by accounts. |
I see, using https://www.curseforge.com/minecraft/mc-mods/server-properties-for-lan and enforcing |
I'm not sure, the launcher doesn't seem to handle microsoft accounts in offline mode that differently to offline mode accounts so I'd guess that even though the username's been changed everything else is still valid so the game lets it in. |
What you mean by everything else? There's any way to mimick it? |
I mean things like the UUID, access token, etc. |
I see. So I assume that the only workaround is a mod on the Host game, or using versions before 1.7.6 then. |
I remember back when I was 9 or smth, using TLauncher (ik it's a virus now) on 1.12.2 and it worked fine. (might be irrelevant) On PollyMC, I can join 2 Ely.by accounts or a mix and match. The host always used an Ely.by account. I was using modded 1.12.2. Both machines were on Linux and use the |
The mod linked earlier in this thread seems to have its latest version for 1.12.2. I was able to find another mod for later versions |
thats because tlauncher launches game in offline mode, but IIRC pollymc emulates auth server |
PollyMC should only be redirecting the game to Ely.by auth servers with an ely.by account. It shouldn't be doing what UltimMC does. EDIT: PollyMC 8.0 now does what UltimMC does. (It uses |
fabric mc seems to working on fix for 1.16.5 on their dev environments. |
So the only way to fix this issue is to make accounts on a alternative server, gotcha |
https://github.com/satxm/mcwifipnp this fixes it for me |
Yes, because it can enforce |
Operating System
Linux
Version of PollyMC
PollyMC 6.0
Version of Qt
Qt 6.4.1
Description of bug
Can't connect to a 1.7.10 LAN server. It gives this message:
Steps to reproduce
Suspected cause
I tried and i can connect fine using PolyMC 1.4.3 (the aur cracked version, that was apparently removed). So the problem was probably introduced on PrismLauncher or PollyMC.
Relevant logs:
Also, by opening the server on a PolyMC (1.4.3) instance, and trying to connect using PollyMC, the log is the same.
But by doing the inverse, open the server on PollyMC, and using a PolyMC to connect, the connection works fine.
I couldn't test in the Prismlauncher, since i don't own a account yet; So i posted the issue here...
This issue is unique
The text was updated successfully, but these errors were encountered: