How to host a Minecraft server: the 3 real options

Self-host, rent a VPS, or use managed hosting. Java 25 for 26.3, ports, the new whitelist default and where each option fails, so you pick right.

Omne TeamUpdated Nov 17, 202611 min read

Quick answer There are three ways to run a Java Edition Minecraft server, and the server program is the same in all of them: your own PC (free beyond electricity, but your router must be able to forward a port), a rented VPS (an always-on machine with a public address, but you maintain it), or managed game hosting (a panel does the setup, you pay for that). Check whether your home connection can forward a port first, because that answers the question in five minutes. Whatever you pick, Minecraft 26.3 needs Java 25 [11], and since 26.3 a fresh server has its whitelist on, so add yourself before you try to join [4].

Which option, in the order I would ask the questions

  1. Can your router forward a port? Look at your router’s WAN address. If it falls in 100.64.0.0/10, that is the block RFC 6598 reserves for carrier-grade NAT, and it is not globally routable [7]. In practice your provider is sharing one public address between customers, so a forwarding rule on your router cannot receive connections from the internet. Self-hosting is out unless you use a VPN-style overlay where every player installs a client, or your provider can give you a public address. The self-hosting guide has the full test.
  2. Does anyone in the group want to be the admin on call? If the honest answer is no, pick managed hosting and stop reading comparisons.
  3. Do you want to learn how a server runs, or need full control? That is the only good reason to rent a VPS. If your reason is a lower price, price in your own evenings.
Self-host Rent a VPS Managed hosting
Setup work Java, jar, firewall, router Java, jar, SSH, firewall Pick a version in a panel
Who keeps it online You and your home connection You The host
Reachable from outside Needs port forwarding, blocked by CGNAT Yes, public address Yes
Main cost Electricity and your time Monthly rental and your time Monthly fee
Good when Small group, you like tinkering You want control without a home network You want to play tonight

A wrong first choice is cheap to fix. The world is a folder, so moving it later is a copy, and migrating a world covers the details.

What every option needs

Java Edition only. Mojang’s server download page says the setup is only compatible with Minecraft: Java Edition [5]. If friends play on console or phone, read the Bedrock vs Java crossplay guide before you build anything.

The right Java. Each Minecraft version has a minimum Java version [3]:

Minecraft version Minimum Java
26.1 and newer Java 25
1.20.5 to 1.21.11 Java 21
1.18 to 1.20.4 Java 17

Mojang’s own metadata for 26.3 lists Java major version 25 [11]. Older Minecraft versions can run on newer Java, but each version has a floor [1]. A server needs only the runtime, not the development kit [1]. Install commands from the wiki, with Java 25 [3]:

winget install EclipseAdoptium.Temurin.25.JRE     # Windows (JRE only)
brew install --cask temurin@25                    # macOS
sudo apt install openjdk-25-jdk                   # Debian, Ubuntu, Raspbian

On Debian-based systems, adding -headless to the package name drops the graphical parts [3], and a package called openjdk-25-jre-headless is listed for Ubuntu 22.04, 24.04 and 26.04, in the universe component on the first two [12]. On a server, that is the one to install. Check with java -version.

Hardware, from the wiki.

  • CPU: a budget Intel 8th-gen or Ryzen 2000-series chip is enough for a small server [1]. The server does most of its work on one core and uses extra cores only for side tasks, so per-core speed matters more than core count [2]. More on that in why clock speed beats core count.
  • RAM: the two wiki pages disagree. The setup tutorial says at least 2 GB available for a small server and possibly 4 GB for larger ones [1]. The requirements page says at least 4 GB for the server and the operating system together, and that Windows generally uses more than Linux [2]. I would plan on 4 GB of machine for a small group and read how much RAM a server needs before buying anything bigger.
  • Disk: reserve at least 5 GB for the world [1].
  • Network: wired, not Wi-Fi. Bandwidth rarely matters until the server is large, and a GPU is not needed [1].

Option 1: Run it on your own PC

Free beyond electricity, and the best choice for a small group who can live with the server being off when your PC is. The cost is that you own the router, the firewall, the changing home IP address and every restart.

Install Java, download the jar from Mojang [5], run it once, accept the EULA, then get the port reachable: PC firewall, a fixed internal address, a forwarding rule on the router that actually faces the internet, and a name that survives your public address changing. The full walkthrough, with start scripts, memory flags, the CGNAT test and the failure messages, is in how to self-host a Minecraft server on your own PC. I keep it there so this page does not repeat it.

Option 2: Rent a VPS

A VPS is a rented virtual machine in a data center, normally with its own public address. You do the same server setup as at home, minus the router. The wiki’s security advice applies directly [1].

  1. Choose a location near your players, and a plan with fast single-core performance and enough RAM for your world [1].
  2. Log in over SSH with a key. The wiki asks for some form of authentication on SSH and says keys must be kept private [1].
  3. Create a non-root user to run the server. The wiki warns that running with super-user permissions is too extensive and invites vulnerabilities [1].
  4. Install a headless Java 25 and run the jar once (above, then the first run and EULA steps in the self-hosting guide).
  5. Open only the ports you need. On Ubuntu that is ufw. Add the SSH rule before you enable the firewall, or you can lock yourself out of your own machine. That ordering is my advice, not something the Ubuntu page states [9][10]:
sudo ufw allow 22/tcp
sudo ufw allow 25565/tcp
sudo ufw enable
sudo ufw status

The port/tcp form is in the ufw manual page; enable and status are in the Ubuntu firewall page [9][10].

  1. Run it under something that survives logout. The wiki’s third-party list includes a systemd service and startup scripts, and the tutorial shows a Docker setup with the community itzg/minecraft-server image [1]. We have a separate guide for running it in Docker with itzg.

A VPS does not update the server, apply Java security fixes, take backups, or restart a crashed server. The wiki’s checklist is blunt: update regularly, back up regularly, and review plugins and mods for known vulnerabilities [1]. Automating backups covers the backup part. A VPS fits if you want to learn the stack and your home router will not forward ports. It is a bad fit if the only reason you picked it was price.

Option 3: Managed game hosting

A provider runs the machine and gives you a control panel: pick a version, upload a modpack, press start. The wiki says to expect a monthly fee, and that you trade constant maintenance for a host keeping it online [1]. Hosts are not affiliated with Mojang and the wiki does not endorse any of them [1]. It does give a checklist of what to compare [1]:

  • Single-thread CPU performance. Per-core speed beats core count.
  • Guaranteed vs shared resources. Some providers oversubscribe, so advertised RAM and CPU may not always be there.
  • Server location, close to most of your players.
  • Software support: vanilla, Paper, Fabric, Forge, or a proxy such as Velocity.
  • Version support, including snapshots if you want them.
  • File and console access. SFTP and full console access make troubleshooting far easier than a restricted panel.
  • Backups: how often, how long kept, and whether you can download them.
  • Refunds and trials, so you can test real performance before committing.

I expanded that list in how to actually evaluate a Minecraft host.

Where Omne fits

We run Omne Hosting, so weigh this section accordingly. Judge us with the checklist above: open our Minecraft hosting page and check each item against it, especially CPU, location relative to your players, software support and what the panel gives you. We do not repeat specs, prices or trial and refund terms here, because they change and this page would go stale.

What about Realms?

Realms is Mojang’s own subscription service. It is zero-setup and limited: a Java Edition Realm allows up to 10 other players, mods and plugins cannot be installed, and players are kicked after 15 minutes of inactivity [8]. If you need plugins or a modpack it is the wrong tool. Is Realms worth it has the tiers.

Vanilla, Paper or something else

The jar from Mojang is “vanilla”. Most large servers run custom software, which Mojang does not support. Paper and Spigot are the common choices for plugins, and Forge and Fabric for mods [1]. Paper’s launch command has the same shape as vanilla’s [6]:

java -Xms4G -Xmx4G -jar paper.jar --nogui

Paper requires at least Java 25 to run [6]; its “recommended Java” table still lists Java 21 for 1.20 to 1.21.11 [6], so the page is not consistent for older versions. The vanilla vs Paper vs Fabric vs Forge comparison helps you choose, and on Paper, installing plugins is a short step.

The first 30 minutes after it starts

Add yourself to the whitelist before you try to join. As of Java Edition 26.3, white-list defaults to true [4]. A brand-new server with an empty list will turn you away, even if you are the one who started it. In the server console:

whitelist add YourUsername

The wiki’s setup tutorial still says the whitelist is off by default [1], so trust the properties page [4] and read the line in your own server.properties. If you already had a server before 26.3, check the file anyway; we have not watched an old file change on update. The wiki recommends a whitelist for any server reachable from the internet [1]. Full details in the whitelist and permissions guide.

Be careful who you op. The op command gives full command access, including stopping the server and changing game modes [1].

Know the defaults you are running [4]:

Setting Default
server-port 25565
max-players 20
online-mode true
white-list true (since 26.3)
view-distance 10
simulation-distance 10
difficulty easy
gamemode survival
pause-when-empty-seconds 60

The two that most affect performance are the distance settings, explained in view-distance vs simulation-distance. Every other key is in server.properties explained.

Consider hiding from scanners. Griefers scan public addresses for servers on the default port [1]. The wiki suggests a non-default port and, going further, enable-status=false, which makes the server look offline in status checks while it still accepts connections [1][4].

Give players a name, not an IP. Register a domain and add an A record pointing at the server’s address; add an SRV record if you use a non-default port, so players do not type it [1]. The exact records are in pointing a domain at your server with SRV records.

If TPS dips, start with diagnosing lag with spark rather than buying more RAM.

Mistakes that cost people an evening

  • Wrong Java version. Each Minecraft version has a minimum, and 26.1 and newer need Java 25 [3]. I did not find the exact error text for this on the wiki, so I am not quoting one.
  • Forgetting the EULA. The server shuts down immediately [1].
  • Testing the port with the server off. A port checker only sees the port while the server is running [1].
  • Forwarding only on a nested second router. It has to be forwarded on the parent router too [1].
  • Memory set above what the machine has. The wiki says an allocation larger than physical memory can cause memory errors [1].
  • Wi-Fi. The wiki recommends against it [1].
  • Turning off online-mode to let a friend in. The whitelist keeps running, but it then matches a UUID made from the typed name [1]. Anyone who types a listed name gets in, and the wiki notes that hackers with fake accounts can connect [4]. Entries made with online-mode on carry Mojang UUIDs, so they should stop matching once it is off (my inference from the wiki’s offline-UUID requirement, also in the whitelist guide; not tested here), so re-add them.
  • Reading “connection timed out” as a broken server. The wiki’s FAQ says a timeout usually means a firewall is dropping the attempt (allow Java through the firewall or forward the port), while “connection refused” means nothing is listening on that port, for example the server has not started [1].
  • “Failed to bind to port!” The wiki says the usual cause is an IP address typed into server-ip that matches none of the machine’s interfaces. Leave it blank [1][4]. Failed to bind to port covers the rest.

What I checked, and what I did not

Checked against Minecraft 26.3 (Mojang’s version JSON lists Java 25) on 2026-11-17, reading the pages cited above on that date. Snapshots of 26.4 exist in Mojang’s version manifest, so the Java requirement or defaults could change when it ships; I did not read its changelog. I have not run these commands on a fresh machine for this update. I did not verify ufw’s default policy on every VPS image, which is why the SSH rule comes first. Prices, specs and refund terms are deliberately left out, ours included.

Questions people ask

Is a VPS harder than self-hosting?

It removes one hard part and keeps the rest. A typical VPS has its own public address, so there is no router port forwarding and CGNAT is not your problem. You still install Java, run the server jar, edit the config, and fix it when it breaks, all over a command line.

Can I switch from one option to another later?

Yes. The world is a folder of files. Stop the server, copy the folder to the new machine, and start it there on the same Minecraft version. Moving is usually easier than choosing.

Do I need a domain name?

No. Players can join with an IP address and port. A domain is easier to share and survives an IP change, but registering one is often paid and rarely free. Free dynamic DNS subdomains exist.

My server shuts down the moment I start it. Why?

Check the EULA first. The first run creates eula.txt, and until you change eula=false to eula=true the server stops immediately.

Does this work for Bedrock Edition?

No. The jar and commands here are for Java Edition only. Bedrock has its own dedicated server software. Our crossplay guide covers letting both kinds of player share a world.

Sources

  1. Tutorial: Setting up a Java Edition server (Minecraft Wiki)
  2. Server requirements (Minecraft Wiki)
  3. Tutorial: Update Java (Minecraft Wiki)
  4. server.properties (Minecraft Wiki)
  5. Download the Minecraft: Java Edition server (minecraft.net)
  6. Getting started with Paper (PaperMC docs)
  7. RFC 6598: IANA-Reserved IPv4 Prefix for Shared Address Space
  8. Realms (Minecraft Wiki)
  9. Firewall, ufw (Ubuntu Server documentation)
  10. ufw(8) manual page (Ubuntu 24.04)
  11. Minecraft 26.3 version JSON (Mojang launcher metadata)
  12. Package search: openjdk-25-jre-headless (Ubuntu)