If you want to install a Minecraft server you can invite other Minecraft players to play on your server.
To host a Minecraft server you need to go through a few steps. We go through these steps in this article. The steps to set up a Minecraft server are slightly different for each operating system. However, there are some steps that are similar.
To get started, make sure that your computer is reachable from the network or the Internet. To allow Minecraft users to play on your server, you must open a certain port in the router.
If this port 25565 is already open, users can play immediately after installing the Minecraft server. If this is not the case, you must log in to your router and open port 25565 (TCP) for Minecraft Java edition or 19132 and 19133 (TCP and UDP) via “port forwarding”.
Also keep in mind that if you want to play Minecraft with a few friends, a very advanced server is often not necessary. A home computer is also suitable for starting a server for less than 10 players. The more players play, the more RAM memory the computer need. If possible, a cable connection to the network or internet is faster and more stable than a wireless WiFi connection. Some lag may occur on a Minecraft server set up over WiFi and this is not good for the quality of the game.
Install Minecraft server in Windows 11 or 10
To get started you need to install Java. Minecraft is programmed in Java. Standard Java runtime does not suffice, you will receive an error message that Minecraft server is programmed in a different (newer) version.
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Download OpenJDK to solve this problem. Download the latest JDK version.
Click “Oracle OpenJDK” for Windows (x64) version.
Download “Oracle OpenJDK” for Windows (x64) version.
Unzip this ZIP file. Place the contents in a folder from which you will start the server. Then open the “jdk-21” folder (in this case version 21 but this could also be a different version) then the “bin” folder.
Download the Minecraft server file. In this case “server.jar”. Place “server.jar” in the “bin” folder you just opened.
Now open a Command Prompt as administrator. Go to the “bin” folder with the “cd” command.
Then issue the command:
java -jar server.jar
to start Minecraft server.
Minecraft server is now starting. If you get an error message about “eula.txt”. Then open “eula.txt” in the “bin” folder and change “eula=false” to “eula=true”. Restart the Minecraft server.
To display all server commands, type in the Command Prompt window:
help
You will now see all commands. To stop the server type “/stop” but there are many more. I hope this helped you. Thank you for reading!