Logo with no Icon
See all

Advertise Privacy Terms

© 2021
How to Setup a Dedicated Minecraft Server on Windows

How to Setup a Dedicated Minecraft Server on Windows

  • Nicolas
  • June 24, 2017

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

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

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

This will configure the server files within the folder.

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.

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”.

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

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!

This article was authored by Nicolas. I write awesome game server guides. They call me Jalapeño cause I bring the heat.

Updated: July 7, 2021
Category: Minecraft

Leave a Reply

Your email address will not be published. Required fields are marked *