top of page
Ayberk

How To Create A Minecraft Server

Updated: 11 minutes ago

In this blog, we will show you how to create a Minecraft server over your local network. Additional technologies are also listed below so you can play together with your friends. Minecraft servers are evaluated in 3 ways.


  1. A test server before a global server launch.

  2. Private server where you can have fun with your friends.

  3. Local server where you can have fun with plugins by yourself.


In this article, we will show you how you can open servers in the above order. We will also show you a few additional settings and helpful resources to achieve stabilization.



A TEST SERVER BEFORE A GLOBAL SERVER LAUNCH

Getting VDS service for a test server can sometimes be costly. However, this sometimes also ensures that you cannot see the problems. That's why we strongly recommend doing a beta version before server startup. In this article we will show you a simple global pre-launch test server setup. The actions you will take are listed item by item below.


  1. Install Java for your computer and the version of Minecraft you will be using.

    1. Java 11 is recommended for Minecraft servers between 1.8 and 1.16.

    2. Java 16 is recommended for Minecraft servers between 1.17 - 1.18

    3. Java 17 is recommended for Minecraft servers between 1.18 -1.20.5

    4. Java 21 is recommended for Minecraft servers between 1.20.5 - ∞

  2. Now let's choose the Minecraft server infrastructure you will use.

    1. For versions 1.8 it is recommended to use Spigot.

    2. For versions 1.8+ it is recommended to use Paper.

    3. For versions 1.20+ it is recommended to use Purpur.

  3. Download Java and the appropriate minecraft files.

  4. Create a folder named “Server” on your computer desktop.

  5. Put whichever of the spigot, paper or purpur files you downloaded into the “Server” folder.

  6. Create a folder named “tools” in Local disk C of your computer.

  7. Open a “java” folder and put the downloaded java files (if there is no installer) in it.

  8. After transferring all files, enter My Computer.

  9. Right click and access the Properties > Advanced System Settings > Environment Variables.

  10. In the system variables section at the bottom, click on “Path” twice.

  11. In the section that opens, you must click on “new” and type the file path where you installed the java folder and put \bin at the end.

  12. The text to be written should be as follows.

    1. C:\Tools\java\bin

  13. Restart your computer for a more stable Minecraft server installation.

  14. After your computer is turned on, log in to the “Servers” folder and open a CMD screen.

  15. In the CMD screen that opens, enter the command “java -jar <.jar file name> --nogui”.

  16. You can then install your plugins and start your server checks.


We have shown you how to set up a test server in a simple way. Now we will show you how to create an optimized start arguments for production. Below are the specific start parameters for each version.


Special initialization parameters for 1-12GB servers.

java -Xms4096M -Xmx4096M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar --nogui

Here you can adjust the amount of ram by simply changing the -Xms and -Xmx values. The minimum recommended amount of ram is 4GB.

Special initialization parameters for 12GB+ servers.



PRIVATE SERVER WHERE YOU CAN HAVE FUN WITH YOUR FRIENDS

Playing minecraft with your friends can be a lot of fun. Especially by installing fun plugins/mods! You can share this excitement with your friends. Moreover, you can share a local Minecraft server with your friends at no cost.


First of all, in order not to repeat the article, you should follow the local test server articles above to set up the main server. An average server size of 4-8GB should be enough for you. Now you can follow the path below for your friends to connect to you. We will use the hamachi alternative ZeroTier for this process.


  1. First, let's create a ZeroTier account.

  2. After setting up your account, download the ZeroTier .msi application and install it on our computer.

  3. The website you register on will give you a Network ID number. After installing the application, let's enter this Network ID number and establish a connection.


  4. Once you have established a connection, simply forward the network ID number to your friends. Your friends should install the same application on their computer and follow the same steps.

  5. Your friends will then be able to connect to you via Multiplayer.



LOCAL SERVER WHERE YOU CAN HAVE FUN WITH PLUGINS BY YOURSELF

To keep the article simpler and to avoid unnecessary information, just do the “local test server” operation at the top. In the same way, you can put your plugins and have a fun Minecraft experience!


There are some server.properties tweaks in the rest of the article. By examining them, you can adjust performance and have a better quality server experience.


SOME SERVER.PROPERTIES FILE SUGGESTIONS

The adjustments here are advisory to improve server performance and to finalize the adjustments. You can find different options that are more suitable for you by experimenting.


ONLINE-MODE: TRUE

The best precaution for a minecraft server is to keep it open to premium access. Minecraft servers with crack are not supported by Minecraft and are vulnerable to many bugs and vulnerabilities. For a better Minecraft server, online-mode should always be true.


SYNC-CHUNK-WRITES: TRUE

This is entirely dependent on the server used. If you are using a multi-thread processor, please set this value to “false”. However, if you are using a single-thread processor, please set this value to “true”. This directly affects the map performance in particular.


network-compression-threshold: 256

This setting allows you to define a packet size limit before the server attempts to compress it. Increasing the limit may save CPU resources at the cost of bandwidth, but setting it too high could negatively impact clients with slower network connections. Setting this value to -1 disables compression entirely. If your server is on the same machine or within a network with less than 2ms of ping (e.g., behind a proxy), disabling this setting (-1) can be beneficial, as internal network speeds can typically handle the additional uncompressed traffic.


simulation-distance: 4

The simulation distance refers to the number of chunks around the player that the server will actively process. Essentially, it determines the area within which game mechanics, such as furnaces smelting, crops and saplings growing, and other similar actions, will occur. It is generally recommended to set this value deliberately low, typically around 3 or 4, due to the presence of the view-distance setting. The view-distance allows additional chunks to be loaded without being actively simulated, which enables players to see farther while minimizing the impact on performance.


See you in our next article!


9 views0 comments

Related Posts

See All

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page