Professional Documents
Culture Documents
com/us-en/shop/tech-takes/how-to-make-minecraft-server
1 of 10 14/01/2024, 10:49
Firefox https://www.hp.com/us-en/shop/tech-takes/how-to-make-minecraft-server
With so many massive randomly generated worlds to explore, you can only
get so far playing Minecraft on your own. Since its initial release in 2010,
Minecraft has become one of the top multiplayer gaming experiences,
allowing players from around the world to connect, explore, and build
together.
2 of 10 14/01/2024, 10:49
Firefox https://www.hp.com/us-en/shop/tech-takes/how-to-make-minecraft-server
Creating a Minecraft server gives you full control of both the in-game
world itself and the back end - you can use admin commands to teleport,
spawn items, change the time of day, and so much more. If you want to go
a step further, there’s even a whole world of player-made modifications
that alter the gameplay in various ways - a server can be used to test out
those mods with your friends!
Hosting a Minecraft server yourself is also a great way to play online with
a small group of friends without having to set up a VPN or spend extra
money for a third-party hosting service.
Start by downloading the Minecraft launcher via the official website here.
3 of 10 14/01/2024, 10:49
Firefox https://www.hp.com/us-en/shop/tech-takes/how-to-make-minecraft-server
To access the game, you’ll need to log into a Microsoft account that has
purchased Minecraft.
Once inside the Minecraft Launcher, you should make sure that you’re
playing the most recent version of the game. Ensure MINECRAFT: Java
Edition is selected in the left-hand column and that you’re launching the
Latest release.
This guide assumes you are using Minecraft version 1.19.2, the latest
release at the time of writing.
Click Play. Once on the main menu, you can close Minecraft and move on
to the next step.
WINDOWS
Inside the prompt, type “Java -version” and hit enter. If Java is installed, it
should list a Java version number.
MACOS
Type Java -version and hit return. Make a note of the Java version that is
installed, if any.
4 of 10 14/01/2024, 10:49
Firefox https://www.hp.com/us-en/shop/tech-takes/how-to-make-minecraft-server
If the command prompt returns a Java Runtime Environment other than 19,
or if you receive an error message stating that “java” is an unrecognized
command, you’ll need to install the correct version of Java.
Version 19 of the Java Development Kit can be found here. Make sure
“Java 19” is selected, then download the appropriate file according to
your OS. The installer version is recommended.
Run the Java installer and follow the instructions. Java will install the
necessary files. The program might prompt you to remove a previous
version.
After setting up Minecraft and Java, download the official server file from
the Minecraft website here. Ensure that the server version matches the
version of Minecraft you installed, in this case, 1.19.2.
This is where all the necessary files, including the Minecraft world itself,
will be stored.
Finally, cut and paste or click and drag the server.jar file from its
original location into the Minecraft Server folder.
5 of 10 14/01/2024, 10:49
Firefox https://www.hp.com/us-en/shop/tech-takes/how-to-make-minecraft-server
Windows and the folder resides in the Documents directory, the command
would look like this:
The command line should update to the new folder location. This ensures
that the command prompt is looking for the server.jar file in the correct
location.
To start the server for the first time, input the following command:
This will generate the necessary files within the Minecraft Server folder
you previously created. However, the server won’t launch until the End
User License Agreement is accepted.
Stop the server by entering the /stop command within the prompt. Next,
enter the Minecraft Server folder, locate the eula.txt file, and open it.
Change the bottom line from eula=false to eula=true. Save and close
the text document.
You are now ready to complete the server setup. Launch the server again
using the following command:
The server will fully initialize this time. You may be prompted to allow the
software through your machine’s firewall, which you should accept.
A server graphical user interface (GUI) window will open. This displays the
same information as the command prompt on the right-hand side, as well
as a list of active players and technical statistics such as memory usage
in the left column.
The server should be up and running now, and accessible from the
machine you’re running it on. You can test this by running Minecraft,
selecting Multiplayer, then Direct Connection. In the server address
box, type in “localhost” then click Join Server.
Once you’ve successfully connected to the server, you should see your
username appear under the “Players” tab in the server GUI.
6 of 10 14/01/2024, 10:49
Firefox https://www.hp.com/us-en/shop/tech-takes/how-to-make-minecraft-server
Highlight the file’s entire name (including the .txt extension) and replace it
with “start.bat” then hit enter. If done correctly, Windows will warn you
about changing the file’s extension. This is OK, so click Yes.
Right-click start.bat and hit Edit. A notepad document will open where
you can type in the necessary command:
On Mac, shell script files are used to execute commands. Navigate to the
Minecraft Server folder and create a new text file within it. Rename it to
“start.sh” and enter the following command:
#!/bin/sh
cd "$(dirname "$0")"
Save the file and open Terminal. Use the previously mentioned change
directory command to point Terminal to the correct folder, then run the
following command:
7 of 10 14/01/2024, 10:49
Firefox https://www.hp.com/us-en/shop/tech-takes/how-to-make-minecraft-server
After creating the necessary command file, you can simply double-click it
and the server should start automatically.
The server software is now up and running on your computer - but making
it public for other players to join will require a few extra steps.
The simplest way to connect this type of server to the internet is to host it
yourself using a process called port forwarding.
8 of 10 14/01/2024, 10:49
Firefox https://www.hp.com/us-en/shop/tech-takes/how-to-make-minecraft-server
WINDOWS
Open a command prompt. Type the command “ipconfig” and press enter.
The prompt will return several different IP addresses - scroll down until you
see the Default Gateway address in an X.X.X.X format. Copy these digits
by highlighting the text and pressing CTRL+C on your keyboard.
MACOS
Open the terminal app and enter the command “/sbin/ifconfig/” then hit
return. Locate the Default Gateway IP address in the X.X.X.X format.
Highlight it and use CMD+C to copy.
Paste the default gateway IP address into your web browser’s navigation
bar and hit enter or return.
If successful, you should be prompted to log into your router to access its
settings. Unless you changed the credentials, the default login information
should work. Try:
Username: admin
Password: admin
OR
Username: admin
Password: password
Once you’ve logged into your router, you should locate the Port Forwarding
section, which can sometimes be found in an advanced settings menu.
You’ll want to add a new Port Forwarding option, named something like
“Minecraft.” You also may need to input the host machine’s IP address.
You’ll also need to identify the internal (TCP) and external (UDP) port
numbers and fill them in. The Minecraft default is 25565 which should be
fine for both in most cases.
9 of 10 14/01/2024, 10:49
Firefox https://www.hp.com/us-en/shop/tech-takes/how-to-make-minecraft-server
Provide your players with this IP address and ensure that they use :25565
as a suffix, like so:
XXX.XXX.XXX.XXX:25565
After installing or updating Minecraft and Java, ensuring that you’re using
Java version 19 or higher for Minecraft 1.19.2, it’s just a matter of
familiarizing yourself with simple command lines - and once you’ve set up
a command file to automatically start the server for you, your Minecraft
server is just two clicks away!
This article only scratches the surface of Minecraft server hosting - but
should be all you need to know to get a basic server up and running, and
you should have no problem getting countless hours of playtime from this
setup.
10 of 10 14/01/2024, 10:49