In this comprehensive guide, we will walk you through the process of setting up a Minecraft server on both Windows and Linux operating systems. Whether you’re a seasoned Minecraft player or a beginner looking to create your own server, we’ve got you covered with step-by-step instructions and useful tips to ensure a smooth setup process.
Setting up a Minecraft server allows you to create a customized multiplayer gaming experience for you and your friends. With your own server, you can control various aspects of the game, such as gameplay rules, mods, and player interactions. In this guide, we will focus on setting up the server on two popular platforms: Windows and Linux.
Before we dive into the setup process, make sure you have the following requirements:
- A computer running either Windows or Linux with sufficient hardware resources.
- Stable internet connection with decent upload and download speeds.
- The latest Java Runtime Environment (JRE) is installed on your system.
Part 1: Setting up a Minecraft Server on Windows
Step 1: Downloading the Server Files
To start, download the Minecraft server files from the official Minecraft website. Ensure you download the server version that matches your desired gameplay, such as Vanilla, Bukkit, or Spigot.
Paper MC : https://papermc.io/downloads/paper
Step 2: Creating a Server Folder
Next, create a dedicated folder on your computer where you want to store the Minecraft server files. It’s essential to keep the server files organized and easily accessible.
Step 3: Configuring Server Properties
Open the server folder and locate the “server.properties” file. This file contains various settings for your server, such as the server name, game mode, and difficulty level. Customize these settings according to your preferences.
Step 4: Running the Server
Double-click the “start.bat” or “minecraft_server.jar” file to launch the server. This will initiate the server setup process. You may see some log messages indicating the server’s progress.
java -Xmx1G -jar paper-1.20.1-100.jar
Step 5: Allowing Access Through Firewall
If prompted, allow the Minecraft server through your Windows Firewall to enable players to connect to the server.
Step 6: Inviting Players
To invite players to join your server, share your public IP address with them. Players can connect by entering the IP address in the Minecraft game client.
Part 2: Setting up a Minecraft Server on Linux
Step 1: Installing Java
Before proceeding, ensure Java is installed on your Linux system. If not, you can install it using the package manager specific to your Linux distribution.
Step 2: Downloading the Server Files
Similar to the Windows setup, download the Minecraft server files from the official website onto your Linux machine.
Step 3: Creating a Server Folder
Create a dedicated folder on your Linux system to host the Minecraft server files. Organizing the files in a specific folder will make it easier to manage and maintain the server.
Step 4: Granting Execution Permissions
In the terminal, navigate to the server folder and grant execution permissions to the “minecraft_server.jar” file using the chmod command.
Step 5: Configuring Server Properties
Open the “server.properties” file using a text editor and customize the server settings based on your preferences.
Step 6: Running the Server
Execute the Minecraft server by running the “java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui” command in the terminal. The “nogui” parameter will run the server without a graphical user interface.
Step 7: Allowing Access Through Firewall
If you have a firewall enabled on your Linux system, ensure to allow the Minecraft server through the firewall to enable player connections.
Step 8: Inviting Players
To allow players to join your server, share your public IP address with them. Players can connect by entering the IP address in their Minecraft game client.
Congratulations! You have successfully set up a Minecraft server on both Windows and Linux. Now you can enjoy multiplayer gameplay with your friends in a custom environment created and managed by you.