HomeJavaModsNeoVelocity
NeoVelocity
ModsJava

NeoVelocity

by G_ab · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for NeoForge only.

⬇ Download for 1.21.11⬇ Download for 1.21.9–1.21.10⬇ Download for 1.21.6–1.21.8⬇ Download for 1.21–1.21.5
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
NeoVelocity — screenshot 1
NeoForge Logo

NeoVelocity

NeoVelocity enables Modern Forwarding support for NeoForge servers running behind a Velocity proxy.

Without this mod, NeoForge servers behind a proxy often see all players connecting from 127.0.0.1 or fail to validate UUIDs/Skins correctly. This mod implements Velocity's native forwarding protocol to ensure IP addresses, UUIDs, and game profiles are passed correctly to the server.

Features

Installation

  1. Install the Mod Drop the jar file into your server's mods folder.

  2. Server Properties You do not need to set online-mode=false in server.properties, as this mod hooks into the login process directly. However, if you run into authentication loops, setting it to false is safe since the proxy handles auth.

  3. First Run Start the server once to generate the configuration file at config/neovelocity-common.toml.

  4. Configure the Secret Locate the forwarding.secret file in your Velocity proxy's root directory. Copy the content and paste it into config/neovelocity-common.toml on your NeoForge server.

    • Option A: Paste the string directly into the config.
    • Option B: Point the config to a file path containing the secret.

Configuration & Compatibility

Large Modpacks (Velocity Config)

Velocity limits the number of known packs to 64 by default. If your modpack exceeds this limit, players will be disconnected, and your Velocity console will show QuietDecoderException: too many known packs.

To fix this, add the following flag to your Velocity Proxy's startup arguments and set the number higher than 64:

-Dvelocity.max-known-packs=64 # Increase this value (try 128 or higher)

Mod Compatibility (The "Catch-All" Setting)

By default, NeoVelocity assumes all custom login packets are Velocity authentication attempts.

However, the Fabric Networking API allows mods to send their own custom login packets. To allow these mods to work, you must set login-custom-packet-catchall = false in the configuration.

How it works: When set to false, NeoVelocity checks the packet's signature first.

Warning: If your forwarding secret is incorrect while this setting is false, NeoVelocity will ignore the Velocity packet. The server will treat it as unknown garbage data and disconnect you with an "Incompatible mod detected" error in the logs.

Security Warning

Do not expose your NeoForge server port directly to the internet. You must configure your firewall (iptables/UFW) to only accept connections from your Velocity Proxy's IP address. If the backend port is open, a malicious user could bypass authentication by knowing the forwarding secret.

Troubleshooting

If players are kicked during login, check the disconnect message and compare it below.

Further Documentation

For detailed guidance on setting up your proxy, configuring firewalls, and tuning network settings, please refer to the official Velocity Documentation.

Contributing

Source code is available on GitHub. If you find a bug or want to suggest support for other proxy protocols, feel free to open an issue or submit a Pull Request.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more