question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bedrock can't connect to Velocity when force-key-authentication=true

See original GitHub issue

Describe the bug

When Velocity is configured with force-key-authentication = true (the default setting), Bedrock clients are unable to connect.

[11:49:14 INFO] [geyser]: /<ip-address>:58822 tried to connect!
[11:49:15 INFO] [geyser]: Player connected with username seb30303
[11:49:15 INFO] [geyser]: seb30303 (logged in as: seb30303) has connected to the Java server
[11:49:15 INFO] [floodgate]: Floodgate player who is logged in as .seb30303 00000000-0000-0000-0009-01f65009eec0 joined
[11:49:15 INFO]: [initial connection] /<ip-address>:0 has disconnected: multiplayer.disconnect.missing_public_key
[11:49:15 INFO] [floodgate]: Floodgate player logged in as seb30303 disconnected
[11:49:15 INFO] [geyser]: seb30303 has disconnected from the Java server because of Missing profile public key.
This server requires secure profiles.

This is using latest Geyser (#1108), Floodgate (#65) & Velocity (3.1.2#147)

To Reproduce

  1. Install Geyser-Velocity & floodgate-velocity with velocity-3.1.2-SNAPSHOT-147 with default Velocity settings
  2. Connect with Bedrock 1.19 client

Expected behaviour

It should work with force-key-authentication=true as this is needed for Java clients to securely authenticate.

Screenshots / Videos

No response

Server Version and Plugins

Velocity 3.1.2#147 Geyser #1108 Floodgate #65 ViaVersion-4.3.1 ViaBackwards-4.3.0

Geyser Dump

https://dump.geysermc.org/clNSSOPHicvZ1d8ipGRFRvIEgDjONToP

Geyser Version

2.0.4-SNAPSHOT (git-master-78bb69b)

Minecraft: Bedrock Edition Device/Version

1.19 Windows 10

Additional Context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PureGerocommented, Jun 9, 2022

Hi, where is the config option for force-key-authentication? I couldn’t find this in Velocity’s config

You need to add the option to the velocity.toml yourself. It goes under the offline-mode as so:

# Should we authenticate players with Mojang? By default, this is on.
online-mode = true

# Should the proxy enforce the new public key security standard? By default, this is on.
force-key-authentication = true
0reactions
Camotoycommented, Jun 11, 2022

Floodgate should now deal with this error if you’re on the latest Velocity and Floodgate builds.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Velocity + Paper 1.19 · Issue #3039 · GeyserMC/Geyser - GitHub
With Bedrock: Can login just fine Velocity > Hub and all server but the ... to disable the force-key-authentication setting in velocity.toml ...
Read more >
Configuring Velocity — Velocity 1.0.0 documentation
This setting determines the minimum amount of time (in milliseconds) that must pass before a connection from the same IP address will be...
Read more >
Common Issues - GeyserMC Wiki
If you still can't make it work, join our Discord for support. ... I can't connect! ... Velocity. Set force-key-authentication = false in...
Read more >
Universal Geyser | Minecraft: Bedrock Protocol Support master
Under your Github issue #3019 "Bedrock can't connect to Velocity when force-key-authentication=true" you closed it by saying that the latest ...
Read more >
Can't Get Floodgate+Geyser to Work on Second Instance
This should point to the public key generated by Floodgate (BungeeCord, Spigot or Velocity) # You can ignore this when not using Floodgate....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found