How To Setup Minecraft Server Java

How To Share Your Minecraft Server With External Users

How to Setup Minecraft Server on Windows 10 (java)

You may like to play games with friends who are not on your local network, i.e., friends or gamers who are living in other regions. There are 2 popular and easier ways of sharing your Minecraft server with such users:

Standard Method

  • Open the command prompt and generate your IP address by typing ipconfig
  • Note down your IP address
  • Open Minecraft server and provide your IP address
  • Go back to the server
  • Open the command prompt and type ipconfig to generate your IP address.
  • To get the admin controls on your server
  • Open the Minecraft server and at the end type op followed by your username
  • It will give you extended controls like whitelisting people, banning people changing game mode, etc.

Port forwarding

  • Open command prompt and type ipconfig
  • Copy the default gateway
  • In your folder open for the file server properties and click port forwarding
  • Go back to the Minecraft
  • In the IP address enter IPV4 address that you got in the command prompt
  • In the start port and end port fields type 25565
  • This is the ID that you would need to give out to the people who wish to join your network.

Benefits Of A Minecraft Server

If youre looking for a more immersive and customized Minecraft experience, hosting the game on your own server is a logical progression. You can host online multiplayer games at higher capacitythink hundreds of players as opposed to just tenand its a chance for you and your friends to get crafty on a much grander scale.

With a dedicated Minecraft server, youre in complete control of your environment and will enjoy better speed and performance. If youre part of the Minecraft development community, a dedicated gaming server gives you added power, reliability, and security options than any other approach.

Security is a critical concern, as Minecraft is essentially a community of coders. Like any other game, players tend to be very competitive, and some will go to great lengths to take down a rivals network. The more control you have, the safer and happier youll be.

Making A Minecraft Server: Which Ionos Solution Would Suit Me

The search for the right hardware base for your own Minecraft server is not only a question of finding the right provider: You also have to filter out the right server model from the wide range of offers. At IONOS, for example, you have the choice between

  • a vServer ,
  • a cloud server
  • and a dedicated server.

With the latter model, you can also choose whether you take over the administration of the dedicated hardware yourself or whether you go for the managed solution, where we take care of the installation and administration of software for you.

For more information on what advantages a dedicated hosting solution offers, see our article on.

Read Also: How To Get The Ip Of A Minecraft Server

Installing The Necessary Software Packages And Configure The Firewall

With your server initialized, your first step is to install Java youll need it to run Minecraft.

Update the package index for the APT package manager:

  • sudo apt update

Next, install the OpenJDK version 16 of Java, specifically the headless JRE. This is a minimal version of Java that removes the support for GUI applications. This makes it ideal for running Java applications on a server:

  • sudo apt install openjdk-16-jre-headless

You also need to use a software called screen to create detachable server sessions. screen allows you to create a terminal session and detach from it, leaving the process started on it running. This is important because if you were to start your server and then close your terminal, this would kill the session and stop your server. Install screen now:

  • sudo apt install screen

Now that you have the packages installed we need to enable the firewall to allow traffic to come in to our Minecraft server. In the initial server setup that you performed you only allowed traffic from SSH. Now you need to allow for traffic to come in via port 25565, which is the default port that Minecraft uses to allow connections. Add the necessary firewall rule by running the following command:

  • sudo ufw allow 25565

Now that you have Java installed and your firewall properly configured, you will download the Minecraft server from the Minecraft website.

How To Create A Minecraft Server

How to Setup Minecraft Server on Windows 10 (java)


    Minecraft is one of the most popular games in the world and is very easy to start playing on single player. If you want to play Minecraft in multiplayer, you will need to have a server to connect to. This is a centrally located server where multiple players are able to connect and play together. Whether you are going to start your own Minecraft server, or rent one from us, there are many things to consider. You need to think about everything from hardware requirements, server setup, security, maintenance, security and upgrades. You will need to make sure that all of this is in place before releasing your Minecraft server to the public. Starting your own Minecraft server is a fun project and this tutorial will teach you how to make a Minecraft server.

    Whether you are a parent or a Minecraft player you can learn much about the different features of setting up a Minecraft server. If you choose to use our server hosting you can have a server up and running in minutes and if you choose to do it on your own it shouldnt take more than an hour.

    • 6+ GB RAM
    • 1+ GB RAM
    • Automatic backup capabilities
    • Very fast connection with proper routing for player connections

    RAM Requirements

    Network Requirements

    Read Also: How Much Does Minecraft Cost On Nintendo Switch Lite

    Create A Connection To The Server

    The first step is to establish a remote connection to your server. If you have not yet set up access, you can do this directly via the IONOS Cloud Panel. To do this, first log in to the with your login data.

    Select Server & Cloud from the menu and click the server you want to install and host Minecraft on from the listing. Scroll down and press the download link next to the Remote Desktop Connection entry:

    Either select Open with directly or open the file by double-clicking it after the download. In the following dialog window, click on Connect and select Use other account under More options. Now you can enter the login data to your server if you have not yet assigned a password, you will find the start password in the Initial password line.

    When you connect to the server for the first time, you will see a warning about the security credentials. To continue, simply click Yes here. This will establish the remote connection to the server.

    You can terminate the remote connection to your Minecraft server at IONOS at any time by clicking on the X in the connection bar presented at the top of the screen!

    Choose Where To Save The Server Files For Minecraft

    Now it is time to move forward onto the next step.

    Before downloading the Minecraft server files to the computer, choose a location to save them. A word of warning make a dedicated folder to save them in the location on the hard drive. The location can be anywhere you want on the hard drive, it does not matter.

    Making a dedicated folder is essential because when running the Minecraft server for the first time it creates configuration files. By making a specific Minecraft file folder, all files will be together.

    Don’t Miss: How Much Is Minecraft For Nintendo Switch

    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.
  • Port Forward The Server

    How to Set Up A Minecraft Server on Your Home Network Java Edition

    The server now works locally! Anyone on the same IP as yours can now join the server. In order to allow people not on the same IP to connect,you’ll need to port forward your server. To do this, google Whats my IP? on Google. Take the number it gives you, copy it, and paste it into the address bar. This will most likely take you to your router’s website where you can manage your router’s settings. Enter the password to your router to continue. My router is a Linksys, you’ll want to google around to find the steps with your specific router. You’ll want to find the Port Range Forwarding section of your router, and enter in the following information.

    Application Name: Minecraft server

    Don’t Miss: Redeem Minecraft

    Configure Your Minecraft Server

    In order to change server settings, such as the amount of RAM memory dedicated to the server, youll need to edit the servers startup configuration.

    Below is an example of a Minecraft server startup command.

    java -Xms512M -Xmx1024M -jar minecraft_server.jar

    The command above can be run in the Windows Command Prompt or by saving it in a .bat file .

    This command would run a Minecraft server .jar file named minecraft_server.jar with 512 megabytes of startup RAM and 1024 megabytes of maximum ram.These server settings and more can be edited by changing their values in the command line. Below weve compiled a list of all the Minecraft server startup commands you can use to edit your server:

    • Initial Memory Size: -Xms512M
    • Maximum Memory Size: -Xmx1024M
    • Server .Jar File Name: -jar server-file-name.jar
    • Hide the GUI : -nogui
    • Run Server in Online Mode : -o true
    • Keep Server Window Open after Stopping Server: pause
    • Run Server on 64-bit Computer: -d64

    Below is an example Minecraft server startup line weve created that enables all of the commands above, and starts a server .jar file named server_jar_file.jar with 1 gigabyte of initial memory and 2.5 gigabytes of maximum server RAM .

    java -Xms1G -Xmx2560M -jar server_jar_file.jar -d64 noguipause

    Congratulations, you now have set up your very own Minecraft server that others can join . If you run into any problems or have questions, leave a comment below the article.Grow your server by listing it on Find Minecraft Servers!

    Startup And Maintenance Script

    Alternatively, you can manage/automate the startup and shutdown of the Minecraft server using a script such as the ones listed below:

    Port forwarding is used when you have a router and you wish to let users connect to your server through it. If you wish to host your server for local reasons, it is not required that you do so. Keep in mind that port forwarding might cause security risks.

    When port forwarding, it varies on how your router will ask you for the information. If you don’t understand on how your router wants you to input the information, try visiting for a tutorial.

    Once you have managed to locate your router’s admin page, and find the Port Forwarding page hit add new service or custom service. When you get a page asking to setup the new rule, it should prompt you on what you want to call it. You may name it as you wish, but for simplicity, name it “minecraft“. Then, you want to look for “type”. If “TCP/UDP” or “Both” isn’t an option you will have to create two rules for both protocols. For the ports , enter 25565. If it asks for anything else other than output IP , leave it alone and continue.

    To find your computer’s IP address, use the following steps:


    Now it is time to configure and connect.

    Read Also: Make A Minecraft Server 1.12

    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 

    Followed by:

    sudo curl -L -o /etc/yum.repos.d/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.

    Start Your Minecraft Server

    How to Setup CurseForge Modpacks on Your Server ...

    java -Xmx512M -Xms512M -jar minecraft_server.jar nogui

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


    Then edit the file and set:


    Save the 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 Customize Your Shield In Minecraft

    Automatic Craftbukkit Installer Download Bukkit Forums Thread Gempng Remember To Leave A Diamond And Subscribe

    Mods is a great way to customize your minecraft experience. Mcprohosting offers a server type installer, allowing for the installation of many different server types including vanilla, many modpacks, standalone forge/fabric, and more. Switch between 29 other game servers at any time. Minecraft server installer bukkit/normal auto update. This guide explains how to install any forge mods onto your minecraft server. Some older versions of forge may not have the ‘open mods folder’ button. Discussion in ‘bukkit tools’ started by mds818 hey i like the idea except then i can’t run craftbukkit when i auto updat it the server says that it the answer is it takes up to an hour to download and install. Java edition installed on your computer is only the first step to playing with mods in this is especially true with servers, where mojang studios wants to make sure the game is reliable and is. Java edition can be a daunting task for the having minecraft: Spigot, bukkit, standard minecraft don’t support mods. So if you want to install cauldron, follow all steps in the tutorial, just choose at the beginning in maintenance and reinstall. Gain access to amazing minecraft servers using the minecraft server download. From where to find mods for your minecraft server to how to install mods on a minecraft server in 1.14, this is the video shows you all of it.

    Minecraft Server: Own Home Server Or Rent A Server

    If you want to create and run your own Minecraft server, you will first need the appropriate hardware. In theory, a home PC is adequate for this but this also depends on the desired number of players and server setting. For three to five players, for example, the Minecraft team recommends three gigabytes of RAM, 18 gigabytes of hard drive space, and broadband resources of at least 12 MBit for the game. In addition, there are the requirements of the operating system for Windows 10, this would be another one or two gigabytes of RAM and 16 or 32 gigabytes of hard drive space .

    These key numbers already make it clear that you cannot run other programs in parallel to the Minecraft server on the respective PC, so it functions exclusively as a host. The purchase of a second PC in addition to your normal device not only takes up the home broadband quota, but also means additional running costs in terms of power consumption. It is probably only an option for very few Minecraft enthusiasts.

    What actually is a server? In our article on the term Server we answer this, and many more questions, addressing, among other things, the ambiguous use of the term in computer science!

    Rentable server resources are also referred to as Infrastructure-as-a-Service , which is IT infrastructure provided to users by a provider as part of a service.

    Read Also: Minecraft Nintendo Switch Bundle

    Choices For A Minecraft Server Home Or Away

    The next decision to make when committing to make a Minecraft server is whether to set it up at home or away.

    There is nothing to prevent anyone from running a server from home but I would like to point out you need a powerful desktop computer. Even more so if installing and playing Minecraft on the same computer.

    If running the server and playing Minecraft I recommend a computer with a 2.8 GHz CPU at least and at least 6GB of RAM. If installing with a hosting company a computer of 1GB of RAM will suffice.

    One thing required to make a Minecraft server is DDoS protection , along with automatic backup, as is a fast connection.

    Another thing I would recommend is using a wired Ethernet connection as opposed to going wireless. This is for connection stability.

    You might not have the computer specs needed to install the server at home. In this case, I recommend using the external hosting. This does come at a cost but on the plus side, it does away with having to deal with the server hardware.

    In regard to external hosting, I would like to stress choosing shared hosting means keeping a watchful eye on the resources you are using. Alternatively, choose a dedicated server, which comes with a higher monthly cost.

    Popular Articles

    Related Stories

    Stay on op - Ge the daily news in your inbox