How To Setup Minecraft Java Server

Running The Server On Macos

How to Setup Minecraft Server on Windows 10 (java)

Go to the start.command file created as above. When double-clicked, the Terminal window appears. Pay no attention if there is an error at this point this is typical.

With the Minecraft server up and running, others can be invited to connect to the Minecraft server you just installed through the local IP address. Again, find the IP address by making a Google search.

Download And Start The Minecraft Server Software

It comes as a Java .jar file. Save it to the location you chose in the previous step.

Double-click the .jar file to start the server. Itll create the server configuration files, which need to be modified before the server is ready to use.

Accept the EULA: A text file called eula.txt was created. Open the file in a text editor and change eula=false to eula=true. Failing to accept the EULA will prevent you from starting the Minecraft server.

What if you see a Cant save server properties error? Run the Minecraft server as an administrator by right clicking the .jar file and selecting Run as administrator.

Agree To The Minecraft Eula And Set Server Properties

We’ll start by adjusting the configuration files before starting the server. The first file to open is the Minecraft EULA. The EULA is the document you are agreeing to when running the Minecraft Server.

To accept the end user license agreement, open the EULA txt file and update eula=false to eula=true. Save the file.

To adjust server settings, open the server properties file and save the file once the necessary changes have been made. If you’re wondering how to adjust server settings, the server properties file determines key server settings like server port, memory, and in game settings. Port 25565 is the default server port.

Read Also: How To Make Your Own Minecraft Server With Mods

This Tutorial Exists For These Os Versions

  • Ubuntu 20.04

Minecraft is an open world and sandbox video game developed by Mojang Studios. With Minecraft, you can build anything you can imagine with unlimited resources in Creative mode. It allows you to play online with friends as well as in single-player mode. It is one of the best video games around the world. You can create your own Minecraft server to play with your friends and play together.

In this tutorial, we will show how to set up your own Minecraft server on Ubuntu 20.04 LTS.

Start Your Minecraft Server

How to Setup Minecraft Server on Windows 10 (java)

java -Xmx512M -Xms512M -jar minecraft_server.jar nogui

To make sure everything is running correctly, stop your server with:

stop

Then edit the server.properties file and set:

enable-query=true

Save the server.properties file and restart your server. From there, enter your server IP address into the Minecraft Server Status Checker to see if its publicly accessible.

Don’t Miss: How To Get The Full Version Of Minecraft For Free

Test Run The Server Jar File

You should now be able to run your Minecraft server. Double-click your Minecraft server .Jar file to start your server using the server GUI.

If your Minecraft server starts successfully, the graphical user interface should pop up and you should see a list of commands similar to the image below.

If an error message prevents the .Jar file from running, right click the file and click Run as administrator.

Can You Make A Minecraft Server For Free

Yes, you can make a Minecraft server for free, however, there are limitations. If you sign up for free Minecraft hosting, it will most likely come with a limited amount of resources, including storage, bandwidth, and hardware. A free Minecraft plan also limits you from adding mod-packs and plugins, which can prevent users from getting the best experience.Another choice is to self-host your server, which can come at a cost. You will need to use a high-performing PC that has to be powered at all times and a fast internet connection to prevent latency. It will also require technical knowledge to maintain and secure your server.Thus, the best option is to choose an affordable and reliable Minecraft server hosting plan.

Read Also: Cheap Minecraft Modded Server Hosting

Update Package Repository And Install Java

You will need to install Java. First, ensure that your package repository is updated using the following command.

Next, install Java using the following commands.

You can check that it was installed successfully by confirming the Java version.

java -version

You will see the following output.

In order to install Java 16, you need to ensure the server is aware the package is available by updating the epel repository. You will update it with the command below.

yum install -y epel-release

If it is not already installed, you will see the following output.

Next, you will install the latest version of Java, which is currently Java 16. Use the following command to install the latest version of Java.

yum install -y java-latest-openjdk

While Java 16 is installed, you still need to set it as the default in order for the server to run applications using the latest version. You can accomplish this by using the following command.

alternatives --config java

You will be presented with the versions of Java installed on your server, each with a corresponding number. Choose the appropriate number and press Enter.

If you run java -version again, it will show the version number you selected.

What Are The System Requirements For Minecraft Server Hosting

Java Installation and Setup – Minecraft SERVER tutorial 1/4

In the previous section, we already gave an example for the hardware requirements of a Minecraft server, focusing on RAM and hard drive space. But what does the developer say about the recommended processor performance? And what are the requirements in terms of operating system and other mandatory software? We have summarized the most important system requirements here.

The figures presented below for RAM, CPU, and hard drive space do not include the required computing power of the selected operating system!

Read Also: Best Minecraft Modded Server Hosting

How To Build A Minecraft Server

Building a Minecraft server takes five simple steps. I will take you through these steps providing you with all the information needed in order to get up and running.

The five steps are as follows:

  • Make sure the latest version of Java is installed on the computer
  • Go ahead and configure the server along with network
  • Make sure the server is running on the computer
  • Ensure that you can access the server.
  • Starting The Minecraft Server

    Now onto the final part to build a Minecraft server, simply follow the steps I have outlined:

  • Go to the Windows command prompt and open it
  • Find the folder with the server files it should be something along the lines of minecraft_server.1.12.2.jar
  • Type in the following into the command prompt without the apostrophes java -Xmx1024M -Xms1024M -jar nogui
  • Put your server file name in the space where it says
  • If other people are going to connect to the server, they may do so using the local IP address on the home network
  • Finally, find out if the server can be accessed by using the Minecraft Server Status Checker by typing in the IP address
  • If all has gone to plan you should be up and running.
  • Recommended Reading: Free Server Hosting Modded Minecraft

    Which Minecraft Hosting Plan Is For Me

    In order to run a larger server smoothly, you need the resources to do it. Hence why were offering five different plans to choose from according to your needs.

    For example, if you want to run a server for up to 100 people without running into any hiccups, you can go for our Villager Plan that offers 3 GB of memory thats more than enough to manage a proper Minecraft server for all of your needs and provide your friends with an enjoyable experience.

    In general, the more RAM you have for your server, the more people will be able to play at the same time. If there are too many people for a server to handle, you can begin to experience lagging issues that can affect playing the game.

    Furthermore, more RAM allows you to install more plugins on your server, which also takes a toll on your server speed.

    To top it all off, choosing one of our plans also comes with additional features, such as instant server setup, DDoS protection, automatic off-site backups, and much more. If youll ever get stuck, we have a 24/7 customer support team that will answer any questions you might have.

    Set Up Your Minecraft Server On Linux

    Minecraft Java Server now in Marketplace

    Start by switching users and creating a directory for your Minecraft files. You can call your directory mineserver.

    su - mcusermkdir mineserver

    You will move to that directory with the following command.

    cd mineserver

    Next, you will download the needed configuration files for Minecraft. Visit the Minecraft Java Edition server page, right-click on the Minecraft server .jar link, and copy the link address.

    To download the files, you need to use the wget command along with the link to the files. It should look like this.

    wget https://launcher.mojang.com/v1/objects/a16d67e5807f57fc4e550299cf20226194497dc2/server.jar

    After running the command, the output will let you know the files were saved.

    minecraft_server.1.17.1.jar

    Don’t Miss: Minecraft Hunger Games Server Ip

    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.

    This newsletter may contain advertising, deals, or affiliate links. Subscribing to a newsletter indicates your consent to our Terms of Use and Privacy Policy. You may unsubscribe from the newsletters at any time.

    How To Identify Your Server Address

    To get started, you need to identify the address of the server you want to join. If you own a Shockbyte server, you can find your server address on your Multicraft server panel . This will be labeled as “Server Address” as shown in the screenshot below.

    In the example above, the server address is 192.168.2.1:12345. Breaking this down, the server IP is the set of numbers before the “:” symbol, and after this are the last five numbers which are the server port.

    Don’t Miss: How To Make Your Own Banner In Minecraft

    Connecting To A Minecraft: Java Server

  • 1Open the Minecraft launcher. It has an icon that resembles a grass block. Click the Minecraft launcher on your desktop, Windows Start menu, Dock, or Applications folder.
  • 2Click Play. It’s the green button at the bottom of the launcher. This launches Minecraft.
  • 3Click Multiplayer. It’s the second option on the Minecraft title screen.
  • 4Click Direct Connect. It’s the second button at the bottom of the screen in the center.
  • 5Enter your IP address. Use the space in the center to enter your computer’s IP address.
  • To connect to a server hosted on the same computer you are running Minecraft on, enter “0” or “localhost”. If you changed the port number in the “server.properties” file, you will need to enter “localhost:” followed by the port number.
  • To connect to your Minecraft server from a different computer on the same network, you will need to enter your computer’s internal IPv4 address.XResearch source
  • To connect to your Minecraft server from a different computer on a different network, you will need to enter your computer’s external IP address, which can be found by going to
  • 6Click Join Server. This connects you to the server. Advertisement
  • Choosing Your Server Version

    EASY Minecraft Server Setup Guide | PC Java 2021 | No Hamachi

    Minecraft is perhaps the greatest sandbox game of all time. What this refers to as there are an unlimited number of modifications that can be made to the game itself along with the ability to create whatever you would like in the game. When you are creating a Minecraft server you can predetermine what the server will be able to do by choosing the type of server that you would like to create.

    The best Minecraft servers are mostly based on Spigot and plugins since they are much easier for players to connect to, but there are many other popular types. When you start the main server executable all of the required server files will be created and you will be able to edit this after the first boot. There are a few different server versions which you can learn more about below before making your selection.

    Vanilla

    There are many different kinds of servers to play in Minecraft. The default version of Minecraft comes from Mojang themselves and is also known as Vanilla. As of the time of writing this article the latest version is 1.8.1. This vanilla Minecraft is the foundation for all of the other server versions. Typically enhanced servers are older server versions which have been heavily modified to increase performance and expand functionality. This is a great way to get started with hosting your Minecraft server as there are not many additional steps to setting up this type of server. It is easy to get your very own server up and running on this type.

    Bukkit

    Forge

    Don’t Miss: Best Minecraft Server Hosting Companies

    How To Setup Minecraft Server In A Local Pc

    Step 1 Download and install Java

    Go to and download Java

    Step 2 Install Java

    Double click the downloaded file and follow the screen to install

    Step 3 Download the Minecraft Game

    Go to and download minecraft_server.x.x.x.jar file

    Step 4 Create a Game folder

    Create a new folder under D driver or any folder for the game file.

    D:\Minecraft\

    Copy and paste the downloaded file server.jar to the created folder.

    Step 5 Run the game

    Start the server by double-clicking the .jar file which will generate configuration files. Make necessary modifications before the server gets ready for use

    Open eula.txt file and replace eula=false with eula=true which is mandatory to start the Minecraft server.

    You might encounter an error alerting that the server properties cant be saved. In that instance, right-click .jar file Run as an administrator that will enable you to run the Minecraft server as an administrator.

    Step 6 Play the game and Enjoy

    Run the Game and go to multiplayer mode.

    Add Server

    Install/Update your Java Version

    Installation

    • The user who hasnt yet installed the Java or is using the outdated version can download it from the website

    Updating

    • Open Programs tab in your Windows Control Panel and search Java. Click Update Now
    • Open Command Prompt and get the Java version number by typing Java-version.

    Note: After installation, you would need to restart the computer

    Four: Running The Minecraft Server

    Start by using the following command to get your server to fire up:

    java -Xmx1024M -Xms1024M -jar server.jar nogui

    But don’t get too excited yet, it’s about to fail for you. The first time you run this it looks to check if the eula file has been accepted. And because the file never existed it sets one up for you. Your SSH window should look like this.

    To fix this we’ll use vi editor to edit the file:

    vi eula.txt

    This will bring you into the file to edit it. Use the arrow keys to move the box cursor around to the end of line with eula=false. Now to edit it hit i on your keyboard and you should see the word — INSERT — at the bottom of the screen. You are now in edit mode. Change the false to true.

    Once edited you hit the esc key and type :wq and then hit enter.

    That’s it, now we can start our server – but before we get carried away, if we simply run the java command again now, as soon as we close the SSH window our server will stop running. We need a way to keep it running, so we’ll use screen to do that.

    yum install screen

    And then we want to run a screen called mcserver by entering

    screen -S mcserver

    Type that in and hit enter – and you’ll have a brand new prompt at the top of the screen. Now you can run your java command here and once you close the window – the server will keep running.

    So now we are finally ready to run our Minecraft Server.

    java -Xmx1024M -Xms1024M -jar server.jar nogui

    It’ll take a moment or two but your world will start coming to life.

    Read Also: Minecraft Hide And Seek Server

    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.

    Popular Articles

    Related Stories

    Stay on op - Ge the daily news in your inbox