How To Setup A Minecraft: Java Edition Server
Note: This guide shows you how to set up and configure a Minecraft Server. However, doing this requires changing your home network’s configuration and is not recommended unless you know what you are doing. If you wish to purchase a small private server for friends, check out Minecraft Realms. If you still wish to set up your own private server, do so at your own risk as we cannot offer support for home networks or privately made servers.
Here is a guide to help you create a server so your friends can join and play together!
As a prerequisite, you should make sure you have Java installed and up to date on the computer that will host the server so it can run .jar files.
Select A Location For Your Minecraft Server Files
Before downloading the required server software, decide where on your computer you would like to store your server files, as when you run your server for the first time, it will create some standard config files. Its good to have them organised in one place. This can be in your documents folder, desktop, or wherever youd like choose somewhere thats easy to remember!
Make Your Minecraft Server Work 24/7
Unlike when you are creating a server on your computer, when creating it on the hosting service, players from all over the world will be able to connect to you without problems. The server will run 24/7 uninterrupted and have a good Internet connection with a low ping. It will be protected against DDoS attacks. In addition, you can automatically install servers through the control panel, update them, use a domain to connect to the server, and create your own website.
Don’t Miss: Code.org/minecraft
How Does A Minecraft Server Work
A server on the popular game Minecraft works very much the same way as really any other server or computer that is connected to the internet and communicates with other devices. Essentially the internet is one huge network where computers communicate data. Web servers are huge computers that process a lot of requests and display web pages or multiplayer game content to anyone who makes a request.
However, just because servers typically involve a lot of computers and processing power, this doesn’t mean that you need to invest in a huge server computer to host your own amazing Minecraft multiplayer world. Since servers can process many requests at once, they make it possible for a world to be played on by numerous Minecraft players simultaneously and update automatically, making for an excellent experience.
Although most people who want to make Minecraft servers usually buy one from a specialized service provider who owns their own server computers, which servers can be hosted on, it is not uncommon for amateurs to host servers on their own devices. For example, if you have a spare laptop or PC lying around that is relatively fast and has decent memory , you can configure it to act as a server and hold a Minecraft world that many other people can connect to.
Using A Different System
Setting up a Minecraft server on Windows Server may be preferable if you are familiar with the Windows GUI. In this guide, you will learn how to setup a Minecraft server on Windows Server .
This article assumes that you have logged into your server with RDP, and that you have Java installed.
You May Like: How To Decorate Shield Minecraft
How To Make A Minecraft Server In Hpanel
Setting up a Minecraft server with Hostinger has never been easier. Once you have chosen your plan and made your purchase, log in to your Hostinger account. From there, well take you through the rest of the steps:
Congratulations, your Minecraft server is now live.
Setting Up Server Properties
Now lets look at some server properties we can change to customize what kind of Minecraft game you want to play in your server. Open the server properties file.
Once here, you will see a lot of text sections. Lets cover the most important ones and look at the properties you will most likely want to change.
The properties highlighted in the above image are some of the most important ones you should be familiar with. The first gamemode=survival property determines the gamemode you and your players will play in the server by default. This is set to survival meaning you will have hunger and health you will have to manage in game. Setting this to gamemode=creative lets the players build, break, and fly as they are untouchable and unkillable in this gamemode.
The next spawn-monsters=true is a property that tells the server monsters and dangerous enemies will appear. Changing this to spawn-monsters=false will stop monsters from spawning even in survival mode.
One of the more important properties in our experience with minecraft servers is the next highlighted pvp=true line. PvP stands for player vs play so this controls whether or not players can damage each other. By default this is set to true meaning players can hurt and damage one another in game. Setting this to pvp=false will disable and ability for players to damage each other.
Recommended Reading: Minecraft 24/7 Server Hosting
Edit The Eula And Connect
Double click the startup.bat file, or whatever you choose to call it, to see what happens. Assuming everything is up to date and you entered everything correctly, you’ll see additional files in the server folder, such as the EULA, logs, and server properties. Close out of the command window.
Right click on the EULA and select Edit. In order to move forward, you need to agree to the EULA, which means you need to change the false portion of the last line to true. Do so, save and close the text document.
Rerun the batch file. Windows’ firewall will try to keep you safe by blocking access to your network. Network access is needed, so you can ignore the warning and click Allow Access.
Your command window should show the server being prepared. It can take some time, but the command windows will notify you when it is done. When it is, you should be able to connect to the server.
Launch Minecraft Java Edition.
Key in the hosting computer’s IP address or simply type “localhost” in the server address bar.
Like What You’re Reading?
Sign up for Tips & Tricks newsletter for expert advice to get the most out of your technology.
Creating A Minehut Account
You May Like: How To Add Mods To A Minecraft Server 1.12.2
How To Join A Minehut Server
Minecraft Java players can directly join the server by adding the server address to the game .
On the other hand, Bedrock or Pocket Edition players need to go through an additional step to join the server. First, you’ll have to join the bedrock.minehut.com server on port 19132. Then in the chat, type “/join servername.minehut.gg” to access the server. If the server is up, you’ll be automatically teleported to that particular world.
For example, if your Minehut server address is “random.minehut.gg“, you’ll first join “bedrock.minehut.com“, then type “/join random.minehut.gg” in chat to join the server.
Point A Domain At Your Minecraft Server
Providing players with an easy-to-remember domain name instead of a complicated IP address makes it even easier for people to connect to your Minecraft server.
Its super simple: Update your domains DNS records by adding an A record for your domain , or subdomain , that points to your Minecraft servers IP address.
Note that it can take up to ~24 hours for DNS changes to take effect globally.
If youre not sure how to change DNS records, take a look at this Help article for adding an A record.
Recommended Reading: How To Customize Banners In Minecraft
Opening The Port In The Firewall
You will now need to open the port you have chosen for your Minecraft server in the firewall. If you would like to learn how to open a port in the firewall on Windows Server 2012, read the article Open a Port in Windows Firewall on Server 2012 and open the port you have chosen to use for your Minecraft server.
Your Minecraft server is ready for use. You can now login with the Minecraft game client.
Find The Best Web Host For Your Minecraft Server
There are many web hosts that offer Minecraft servers, including , Apex, Hostinger, and PebbleHost, so your first step should be to shop around. You’ll find various server requirements depending on your Minecraft world size, the number of players that’ll connect to your server, and whether you want to install mods. Naturally, youll pay more out of pocket if you purchase a larger plan, but many web hosts let you upgrade from a lower service tier to a higher service tier without too much fuss. So if youre just starting out, it may be safer to start with a smaller plan and upgrade later as your needs grow.
The most important thing to consider is RAM and virtual CPU allocation. Your server quality and number of players hinge on the server’s memory. 2GB of RAM could support up to 10 players before lag creeps into the game. Virtual CPU allocation affects gameplay smoothness the more CPUs or higher quality CPUs powering your server, the better. As mentioned earlier, if you just want to play with a handful of friends, a basic plan should suffice. If youre hoping to grow a community, however, you must invest money into a high-end hosting subscription.
The basic server creation steps are more or less the same, regardless of the service you choose. Here’s a quick walkthrough of what you should do:
Select the plan suitable for the RAM total that youll need to properly run Minecraft.
Configure your server, specifying the region, game version, and add-ons.
Also Check: Free 24 7 Minecraft Servers
Two: Getting Java Installed On The Server
AWS removed Java from their Amazon Linux EC2 machines, so we’ll have to install a version and this is where I ran into all sorts of issues. I used various tricks to install Java 1.8.0 and OpenJDK Java 11, making sure it was always up to date, but no matter what I did I always ran into an issue where the Minecraft Java Server edition was complied with a newer version. We have to use Amazon Corretto to get Java 16 installed, which will then run Minecraft.
With your instance now running, tick the box beside the name and then hit the Connect button at the top.
We’ll use the EC2 Instance Connect to open up a new browser window with an SSH like terminal in it for working with our box. Check the details and click Connect.
This is your prompt and you want to type in this command and hit enter:
sudo rpm --import https://yum.corretto.aws/corretto.key
sudo curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
You should see it upate the repo and now you can run the command to install Amazon Corretto 16
sudo yum install -y java-16-amazon-corretto-devel
If that executed correctly you should now see
At this point you can check the java version by typing in java -version and you should see something like this.
Right your machine should now be running and ready for a Minecraft Server.
Top Results For Minecraft Server Setting Up
How To Setup Server? : Minecraft – Reddit
Copy the link and share
Minecraft-Server: How To Set Up Your Own Minecraft Server …
Copy the link and share
How To Setup A Spigot Minecraft Server!
Copy the link and share
Minecraft Server: How To Set Up Your VPS
Copy the link and share
What Is My Ip Address For Minecraft
Copy the link and share
How To Set Up Raspberry Pi Minecraft Server
Copy the link and share
Recommended Reading: 2017 Minecraft Seeds
Get Minecraft Java Edition And The Latest Java
There are a few key pieces of software you need to get started if you want to host the Minecraft server on your PC. Firstly, you need Minecraft Java Edition. If you own any other version of Minecraft, be it the console or Windows 10 editions, you cannot host your own custom server. If you have Minecraft Java, then you must install Java .
Head over to the Java Devkit page, or click and search for Windows x64 Installer.
This opens an installation wizard. Go through the installation process, and close the window when its complete.
Get Minecraft Java Edition
These instructions require that you own the Minecraft Java Edition. If you own the pocket, console, or Windows 10 edition of Minecraft, you will not be able to host your own custom server. Minecraft Java Edition can be purchased and downloaded here.
If you already own Minecraft Java Edition, then you can proceed to Step 2.
Also Check: How To Customize Banners In Minecraft Ps4
Create The Run Script
In order to actually hostthe server, you will need a script to run the .jar file. Open a new text file, and copy the following command into it:
java -Xmx1024M -Xms1024M -jar minecraft_server.1.16.4.jar nogui
The minecraft_server.1.16.4.jar is the current Minecraft server version available at the time of writing this. If there is a new version released, simply change this to the name of the .jar file that you previously downloaded.
The -Xmx and -Xms flags are allocating the memory used for the server. If you want to increase these values, you can .
If you are on Windows, save this file as run.bat. If you are on Linux, save this file as run.sh. Make sure you change the extention from .txt so that the file can be properly executed.
Option Two: Third Party Hosts Are Flexible But More Hands On
- Pros: Best value-to-dollar ratio. Host more players for less. Supports plugins and advanced features.
- Cons: Requires more hands-on-configuration and parental involvement.
- Best for: Parents comfortable with Minecraft and doing some manual configuration .
If youre willing to invest a little more energy into the project , then you might consider purchasing a third party Minecraft host.
There are a multitude of benefits that come with a third party host over a Realms server. First and foremost, youll get more for your dollar: the $8 a month you spend on a Realms server will get you a third party host that supports many more players .
Furthermore, most hosts will include support for plugins that enhance Minecraft with cool features, a subdomain so your kids server will have a memorable name like coolkidsbuilding.someMChost.com, and a good host will even have a web-based control panel where you can control the server .
On the downside, while youre getting more bang-for-your-buck than buying a Realms account, youre also getting more work: its up to you to make sure the whitelist is turned on, for example, and youll be in charge of managing all the whiz-bang extras you get with a more advanced host.
Don’t Miss: How To Add Mods To Vanilla Minecraft Server
What Do You Require
If you want to set up and run your own Minecraft server, you’ll need the right hardware first. In theory, a home PC can handle this, but it also depends on the number of players and server configuration. For example, it is recommended to have three gigabytes of RAM, 18 gigabytes of hard drive space, and broadband bandwidth of at least 12 MBit for three to five players.
There are also the operating system’s needs, which for Windows 10 would be an additional one or two gigabytes of RAM and 16 or 32 gigabytes of hard drive space .
These key numbers already indicate that other programs on the respective PC cannot run in parallel with the Minecraft server. Therefore, it only serves as a host. The purchase of a second PC in addition to your primary device not only consumes more of your home broadband allowance but also adds to your power consumption expenditures. It is most likely only an option for a small number of Minecraft fans.
Renting the hardware resources for a Minecraft server is a versatile and frequently highly cost-effective option since it allows you to leave the game’s hosting in the hands of the supplier while you enjoy customizing your game.
You can also set up your Server independently and choose whether it should be public or private with this option. Many current server tariffs greatly boost or drop the booked hardware performance at any time, or at least monthly – an obvious advantage over a home server, which you can’t merely scale up or down.