Skip to content

Minecraft server basics: from jar to first players

Most failed Minecraft servers I have seen died on one of four things: wrong Java, an unaccepted EULA, a closed port or online-mode turned off in panic. This guide goes through them in the order you meet them.

6 steps

  1. Install the right Java

    Minecraft 1.20.5 and newer needs Java 21. Check with java -version in a terminal. Older versions of the game ran on Java 17 or even Java 8, so match the Java to the Minecraft version, not the other way round.

  2. Download a server jar

    Take the vanilla jar from minecraft.net, or Paper from papermc.io if you want plugins and better performance. Put it alone in a new folder, because the server will dump a dozen files next to it.

  3. First run and EULA

    Start it with java -Xms2G -Xmx4G -jar server.jar nogui. It stops after a few seconds and writes eula.txt. Open it, change eula=false to eula=true and start again. 4 GB is a sane start for a small plugin server.

  4. Edit server.properties

    Stop the server first, then set motd, max-players and view-distance (8 is easier on the CPU than the default 10). Leave online-mode=true: turning it off lets anyone log in under any name. Add white-list=true while you are testing.

  5. Open the port and test it

    Java edition listens on 25565 TCP. Forward it on the router or open it in the host firewall (Bedrock uses 19132 UDP). Then run the address through the Server Ping Checker from outside your network.

  6. Add Votifier and test it

    Install NuVotifier in plugins, restart, and note port 8192 and the key in plugins/Votifier/rsa/public.key (or the token in config.yml). Send a test vote with the Votifier Tester before you add vote links anywhere.

If the port check says offline but you can join from the same PC, you are testing through your local network. Ask a friend or use the tool, which connects from the internet.

Tools for this guide

Terms explained