How to Make a Minecraft Server (Java)

Your own world, your rules - in about 15 minutes.

Quick answer: download the server jar from minecraft.net (or Paper for plugins), run java -Xmx2G -jar server.jar nogui, accept the EULA in eula.txt, run it again, and share your public IP. Can't port forward? Use playit.gg and skip the router entirely.

1. Vanilla or Paper?

2. First run

  1. Make an empty folder and put the jar inside.
  2. Run: java -Xmx2G -Xms2G -jar server.jar nogui (2-4 GB for a friends server).
  3. It stops immediately: open the generated eula.txt and set eula=true (you accept Mojang's EULA).
  4. Run it again. The world generates and the console says "Done".

3. Basic configuration (server.properties)

4. Let friends in

5. Bedrock players on a Java server?

Install the GeyserMC plugin (with Floodgate) on a Paper server and console/mobile players can join your Java world. It is the standard cross-play bridge.

Safety basics