Setup a Dedicated Minecraft Server on Windows

By Nicolas in

Minecraft is not complete without the multiplayer experience. In this guide, you will learn how to setup and configure your own Minecraft server so you can play with others and create your own custom Minecraft game server experience with the gameplay and mods of your choosing.

Requirements

You’ll need the following to install a Minecraft server on a Windows computer.

  • Windows computer (32 or 64 bit)
  • The latest version of Java installed

1. Download the Minecraft server Java .Jar file

The server file can be found on the Minecraft server download page.

2. Run the server .Jar file

Do this within a folder that will be dedicated to your Minecraft server.

This will configure the server files within the folder.

3. Open and edit the ‘eula.txt’ file

The eula.txt file is in the Minecraft server folder that you previously created.

Open it with a text editor and make the following change:

'eula=false' to 'eula=true'

If this is not done, the server will not start when you try to run it.

4. Test run the server .Jar file

You should now be able to run your Minecraft server. Double-click your Minecraft server .Jar file to start your server using the server GUI.

If your Minecraft server starts successfully, the graphical user interface should pop up and you should see a list of commands similar to the image below.

Minecraft Server Setup GUI
If an error message prevents the .Jar file from running, right click the file and click “Run as administrator”.

5. Configure your Minecraft Server

In order to change server settings, such as the amount of RAM memory dedicated to the server, you’ll need to edit the server’s startup configuration.

Below is an example of a Minecraft server startup command.

java -Xms512M -Xmx1024M -jar minecraft_server.jar

The command above can be run in the Windows Command Prompt (type cmd in Start and open the cmd.exe file) or by saving it in a .bat file (using any text editor such as Notepad, just save the file name as any-filename.bat and doubleclick it to run the server).

This command would run a Minecraft server .jar file named minecraft_server.jar with 512 megabytes of startup RAM and 1024 megabytes of maximum ram.These server settings and more can be edited by changing their values in the command line. Below we’ve compiled a list of all the Minecraft server startup commands you can use to edit your server:

  • Initial Memory Size: -Xms512M (512 megabytes of initial memory)
  • Maximum Memory Size: -Xmx1024M (1024 megabytes of maximum server ram)
  • Server .Jar File Name: -jar server-file-name.jar
  • Hide the GUI (lowers CPU/RAM usage): -nogui
  • Run Server in Online Mode (authenticated users only): -o true
  • Keep Server Window Open after Stopping Server: pause
  • Run Server on 64-bit Computer: -d64

Below is an example Minecraft server startup line we’ve created that enables all of the commands above, and starts a server .jar file named server_jar_file.jar with 1 gigabyte of initial memory (-Xms1G) and 2.5 gigabytes of maximum server RAM (-Xmx2560M).

java -Xms1G -Xmx2560M -jar server_jar_file.jar -d64 nogui
pause

Congratulations, you now have set up your very own Minecraft server that others can join (as long as your computer is on and running the server file). If you run into any problems or have questions, leave a comment below the article.Grow your server by listing it on Find Minecraft Servers!

Was this article helpful?

Related Articles

Leave A Comment?