← All guides
FreaksMC Guides

How to Make a NeoForge Server (1.21.1 & 26.x Guide)

Updated November 9, 2026 · 6 min read

Most big 1.21 modpacks, like All the Mods 10, Craftoria and a lot of newer kitchen-sink packs, run on NeoForge instead of Forge. If you're trying to host one, you need a NeoForge server, and the setup is a little different from the old "just run the jar" days. Here's how to build one properly, from installer to first boot.

Short answer
Install Java 21 (Minecraft 1.21.x) or Java 25 (26.x), download the NeoForge installer for your Minecraft version from neoforged.net, and run java -jar neoforge-<version>-installer.jar --installServer in an empty folder. Start it with the generated run.sh or run.bat, set RAM in user_jvm_args.txt, accept the EULA, then add NeoForge mods (or the pack's server files) to mods.

What NeoForge is

NeoForge is a fork of Minecraft Forge, created in 2023 when most of the Forge team moved to a new project. For 1.20.1 the two were nearly identical, but from 1.20.2 onward they've drifted apart, and most mod developers on 1.21 now build for NeoForge first.

What that means in practice:

Which NeoForge version should you use?

Minecraft NeoForge versions Latest build (Nov 9, 2026) Java
1.20.2 to 1.20.4 20.2.x to 20.4.x n/a 17
1.21.1 21.1.x 21.1.265 21
1.21.2 to 1.21.11 21.2.x to 21.11.x n/a 21
26.1 / 26.2 / 26.3 26.1.0.x / 26.2.0.x / 26.3.0.x 26.3.0.102 25

Step 1: Install Java 21

Minecraft 1.20.5 to 1.21.x requires Java 21, and 26.1 and newer require Java 25. The wrong Java gives you an UnsupportedClassVersionError straight away.

If you have several Java versions installed, you can call the right one by full path in the commands below.

Step 2: Download the NeoForge installer

  1. Go to neoforged.net and grab the installer for your version.
  2. If you're running a modpack, use the exact NeoForge version the pack lists. On CurseForge and Modrinth it's in the pack's file details, or inside the pack's server files. Mismatched NeoForge versions are a common cause of startup crashes.
  3. Save the neoforge-<version>-installer.jar into an empty folder.

On a Linux VPS you can download it straight from the command line (replace the version):

curl -LO https://maven.neoforged.net/releases/net/neoforged/neoforge/21.1.265/neoforge-21.1.265-installer.jar

Step 3: Run the installer in server mode

Open a terminal in that folder and run:

java -jar neoforge-21.1.x-installer.jar --installServer

Replace 21.1.x with your actual file name. The installer downloads the vanilla server and libraries and patches everything. When it finishes you'll have:

You can delete the installer jar and its .log afterward.

By default NeoForge launches through these run scripts, which pass the right arguments file from libraries. (The installer's window also has a "server starter jar" option if a host needs a single jar, but the run scripts are the standard way.)

Step 4: Set your RAM

Open user_jvm_args.txt and add your memory flags on their own line:

-Xms6G
-Xmx6G

As a rough guide: 4-6 GB for a light pack, 8-10 GB for big kitchen-sink packs like ATM10. Leave some memory outside the heap if your host has a hard memory limit.

Step 5: First launch and the EULA

Run the script:

The first run stops and asks you to accept the EULA. Set eula=true in eula.txt, then start it again. Once you see Done in the console, the server is up.

Step 6: Add mods or a modpack

Adding individual mods

  1. Download the NeoForge build of each mod for your exact Minecraft version.
  2. Drop the .jar files in mods.
  3. Leave out client-only mods like minimaps, shader loaders and Sodium/Embeddium-style renderers. If a mod page says "client side only", it does not go on the server.

Setting up a modpack

Most packs publish a Server Pack download. Use it if one exists, because it already strips client-only mods and often includes its own install script. If there isn't one:

  1. Install NeoForge as above, matching the pack's NeoForge version.
  2. Copy mods, config, defaultconfigs and kubejs (if present) from the client pack into the server folder.
  3. Remove client-only mods. If the server crashes with a mention of client classes like net/minecraft/client, the mod named in the crash is the culprit.

Players need the same pack (same version) installed through their launcher.

Updating NeoForge

  1. Back up the whole server folder, especially the world.
  2. Download the newer installer for the same Minecraft version and run --installServer in the same folder. It replaces the old version's libraries and run scripts.
  3. Start the server and check the console.

Don't jump Minecraft versions this way (for example 1.21.1 to 26.3) on a modded world. Mods have to support the new version first.

Running it for friends

Common NeoForge server problems

Easier: let FreaksMC do it

On FreaksMC, NeoForge is a one-click loader switch in our custom panel, and the panel automatically picks Java 21 (or 8, 17 or 25 when other versions need it). No run scripts, no user_jvm_args.txt editing. Better yet, we install modpacks for free, so you can tell us which pack you want and it'll be ready to join. Check out our modpack hosting.

Modpack plans run $14-36/mo on AMD EPYC hardware with NVMe storage, plus an Extra RAM add-on for heavy packs, backup slots and real human support. Every first order has a 24-hour money-back guarantee you trigger yourself. See pricing.

Want a server that just runs fast?

FreaksMC runs on NVMe hardware with performance-tuned defaults baked in - pre-optimized Paper, sane view distances, and one-click world pre-generation. Set up in 60 seconds.

See plans from $3/mo

We use cookies for analytics & ads to measure how our site performs. Essential cookies always run. See our Privacy Policy.