Minecraft has taken the world like a storm and if you tried it, you could tell why, procedurally created worlds, various modifications available and fun gameplay are just some of the things this game offers and it is non wonder why kids and adults are enjoying it. Minecraft is even more fun when you play with your friends on dedicated servers, where you all can adventure and build together.
Sadly as everything costs, so does the Minecraft servers as well. Lucky you can create your own Minecraft server on your computer so your friends can join and play with you free of charge with just a little time you need to spend reading this guide and building one for yourselves.
Without further delay let's dive right into it.
1. Install the most recent Java version
In order to run your personal server, you will need to own and have Minecraft: JAVA edition, not Windows 10 one. If you have this version of the game and it is already running it means that you already have JAVA as well but we will need to check to see if it is the latest version of JAVA, to check this do the following:
- Press Windows and type in configure java followed by ENTER
- Under the update tab, click on the update now button
- If you have the latest version you are all good, if not follow the onscreen instruction on how to update it.
If by any chance you do not have JAVA installed you can get it here.
2. Prepare a dedicated location for your Minecraft server files
You can use any folder you like for your Minecraft server folder but it is highly recommended to create a new folder whose sole purpose will be to hold and run Minecraft server files. this will be very beneficial in the future when server files need to be updated or configured. Having things in one isolated space is always a good idea and keeping things organized is also a good idea.
3. Download, install and start the Minecraft: Java Edition server file
It is now time to download server files, you can get them here. Download the server.jar file and place it inside your server folder. Once everything is downloaded and prepared do the following:
- Run the server.jar file, the first time it runs, the file will create some configuration files.
- After additional files appear, there should be a text document called eula.txt. Open it with a text editor then change eula=false to eula=true.
4. Enable port forwarding on your router
This sep is required if you want to have people to play with you that are outside your router network, for example, if you want them to connect to your server from their home. If you do not wish to do this and want only people on your serves from your router network you can skip this step. Unfortunately, to enable port forwarding, you’ll need to make your computer on your local network to be accessible by other computers over the internet via a router. This will effectively make your port to be an open port. This can make your system vulnerable to malicious attacks. Once you’ve enabled it, set the default server port to 25565. You’ll need the Server IP address, which you can get by opening Command Prompt or PowerShell and run ipconfig. Your IP address is usually listed as IPv4 or IPv6 Address.
5. Run the Minecraft server
Simply double-click the server.jar file to run the server. If you want to have more control over it, use the command line.
- Navigate to your Minecraft server directory using file explorer.
- We will be using PowerShell instead of Command Prompt to enter commands. Hit Shift + Right-click on the directory window and select “Open PowerShell window here.”
- Once you are in the right directory, write the following command:
java -Xms1024M -Xmx1024M -jar {server file name} nogui
- Replace the {server file name} with the full name of .jar file. The command above will make the server run with no Graphical User Interface (GUI) and use 1024MB of allocated RAM space.
- If you want to enable the GUI, remove the nogui command. Additionally, you can edit the memory allocation for the server by changing the Xms and Xmx value.
- After the server is up, invite your friends to play by sharing your local or public IP address, depending on whether you are using a local or public network. For a local network, you can give the IPv4 or IPv6 Address earlier. For public networks, go to Google and type “what is my ip” to get the address.