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
Cannot join online-mode servers that use prevent-proxy-connections=true #9792
Comments
Please follow the steps in this guide and report back if it worked or not. If it worked, please let us know which step did for you: https://forums.minecraftforge.net/topic/121862-troubleshooting-login-errors-in-forge/ |
Most of these don't apply because the client can log-in/authenticate and connect to servers that have
|
Video context:
|
The facts that I can't reproduce this on a vanilla or forge server. Combined with us not touching the server authentication code at all. Leads me to believe this is a paper issue. SocketAddress socketaddress = ServerLoginPacketListenerImpl.this.connection.getRemoteAddress();
return ServerLoginPacketListenerImpl.this.server.getPreventProxyConnections() && socketaddress instanceof InetSocketAddress ? ((InetSocketAddress)socketaddress).getAddress() : null; And Forge doesn't interfere with that at all, hell it can't because the client doesn't send it's IP address, the auth servers snag it from the TCP connection. |
Out of interest, does it work if you add the following JVM arg to the Vanilla server: |
It doesn't, neither does connecting to the VPS' IPv6. As this is a fresh VPS with nothing on it, I can provide access via SSH pub key if that helps (probably not, it's a bog standard setup) |
I think I've figured out the cause...
I believe MC treats IPv6 over IPv4 solutions as a form of proxy connection, which means it gets blocked when setting Does the issue also happen on Vanilla if you add these JVM args to your client and server? |
Good theory, but it still happens, including on localhost (with both |
Minecraft Version: 1.20.2, 1.20.1, 1.20, 1.19.4, didn't test further back.
Forge Version: 48.0.40 down to at least 45.2.0, didn't test further back
Logs:
Steps to Reproduce:
prevent-proxy-connections=true
Description of issue:
When trying to connect to a server that has
prevent-proxy-connections=true
, doesn't seem to matter if it's with BungeeCord, Velocity, just Paper or a plain vanilla server, it cannot auth with Mojang if this setting is enabled.I am not using a proxy or VPN and I wasn't able to replicate this with the client being Vanilla/OptiFine/Fabric/LabyMod.
No errors in the client- or server log.
HOWEVER: With a fresh MC install or MultiMC instance AND fresh forge install, it works the first time the game is started and only then. After restarting the game, it's borked.
This is on Windows 10 with Java 17 and 19, the standard launcher and Prism, a MultiMC fork, no Forge mods in use.
Originally reported and double-checked by a friend so it shouldn't be something specific to my machine or ISP.
The text was updated successfully, but these errors were encountered: