Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
NeoVelocity
NeoVelocity is a compatibility mod for NeoForge servers to enable secure and modern player information forwarding when used in conjunction with a Velocity proxy. By leveraging Velocity’s modern forwarding protocol, this mod ensures that essential player data—such as IP addresses, UUIDs, and authentication details—is transmitted reliably from the proxy to your server.
Features
- Modern Forwarding Support: Implements Velocity’s native, modern forwarding protocol to securely receive player data.
- Configuration File: On first startup, the mod creates a default configuration file.
- Forgified Fabric API Compatibility: Automatically detects when the Fabric Networking API
v1 (fabric_networking_api_v1
) is present and applies a workaround during the login handshake
to ensure everything works smoothly.
(If you're using a mod that sends login-phase packets through F-FAPI — such as certain Fabric mods —
and experience issues, setlogin-custom-packet-catchall
tofalse
in the config to allow them to work properly.)
Installation
-
Download & Install:
Place the NeoVelocity mod jar file into your NeoForge server’smods
folder. -
Server Properties:
Theserver.properties
file does not requireonline-mode=false
since the mod replaces the whole login process.
(If you encounter any issues you can set it to false) -
Restart Your Server:
Launch the server to allow NeoVelocity to initialize. During this process, the mod will automatically generate its configuration file at:config/neovelocity-common.toml
. -
Setting The Secret:
Simply open the config file located at:config/neovelocity-common.toml
, and change the secret to the one assigned to your proxy. Usually the secret is inside the file:forwarding.secret
inside your proxy's running directory.
You can choose how to provide the secret:- Inline (default): Just paste the secret directly into the config file.
- File: You can instead provide the path to a file containing the secret (make sure the file is in UTF-8
format).
(This can be done while the server is running; the config will be automatically reloaded!)
-
Tell Velocity About The Mods:
You need to add-Dvelocity.max-known-packs=[n]
to launch arguments of Velocity otherwise it won't let you connect. Replace[n]
by the number of mods you have + vanilla default(64) or more if it still gives you errors. See Docs for more information. -
Mod Compatibility:
If you are unable to connect due toTook too long to log in
, or use Fabric mods that send custom login packets
(e.g., through F-FAPI), open the config file and setlogin-custom-packet-catchall
tofalse
to allow compatibility.
Usage Notes
-
Port Leaking:
The NeoForge server should not be exposed to the internet, as someone could impersonate the proxy with the correct forwarding secret and successfully authenticate any account. -
Troubleshooting:
Possible Disconnect Messages:Unable to verify player details.
:
This means your forwarding secret is not the same as the proxy's. Please refer to the Installation step 4.Unsupported forwarding version.
:
This means you are not using the right forwarding method on your proxy. If you wish for me to implement more methods send me a DM on discord or open an issue on GitHub.This server requires you to connect with Velocity.
:
This means you are connecting to the server directly, you need to be connecting through the proxy.Unable to connect you to {servername}. Please try again later.
:
This is velocity related, make sure Installation step 5 is done properly otherwise you might want to see you Velocity logs.Incompatible mod detected during login.
:
This means another mod is interfering with the login phase. Either remove it or
try to setlogin-custom-packet-catchall
tofalse
in the config otherwise open an issue. Make sure to include the mod list printed in the server logs.Took too long to log in
:
This could mean a mod is sending unexpected login packets. Try setting
login-custom-packet-catchall
tofalse
in the config.
-
Further Documentation:
For comprehensive guidance on setting up and fine-tuning your Velocity proxy—including details on advanced configurations and security best practices—please refer to the Velocity Documentation.
Contacts
You can contact me through my GitHub or on Discord as g_ab
Feature Request
The project is open source you can contribute anytime. If you encounter any issues or want another compatibility layer you can contact me.
NeoVelocity serves as an essential bridge between NeoForge and Velocity, ensuring that modded servers can benefit from modern proxy features with minimal setup. Enjoy a more secure, efficient, and modernized server experience!