Players can host a Minecraft server through professional services, but this is not the only option available. Thanks to the game’s roots being in Java, players can host their own server for free on their own PC hardware.
Mojang fully supports players in creating their own Minecraft server, so much so that it provides them with the necessary tools to do so.
Players can download the necessary files from the game’s official website. After a little setup, you can connect to your server with your friends and enjoy the game together.
Step by step guide to host your own server in Minecraft Java
Setting up a Java-based Minecraft server can be tricky for those unfamiliar with moving and editing files. However, the task is simpler than it may seem at first glance.
Mojang also provides a guide on the game’s official website to help players through the process. With a folder and a few files, players will have a base server that they can modify to their liking or play right away in version 1.19.
This method also applies to older versions of the game, as many versions of the game server file are provided by Mojang.
Minecraft players can follow the steps below to host their own server for free:
- head to the game Official site, where the server’s Java file is hosted. Version 1.19 players will want to make sure to download the server.1.19.0.jar file for the current version of the server.
- For convenient access, players should create a folder to place this downloaded .jar file. It can have whatever name a player wants, but something like “Minecraft Server” will work just fine. Once players have set up their folder, they should place their downloaded .jar file inside.
- Players should then open the command prompt and enter CD followed by the directory of the folder where the .jar file is located. For example, C:\Users\Administrator\Desktop\Minecraft Server or whatever directory the folder resides in. Players can check this directory by opening the server folder and checking the top of the window.
- Next, players will want to type Java -jar server.1.19.0.jar and press enter. Players will get an error, but this is intentional as it will generate a necessary EULA file.
- Back in the server folder, players should open the EULA.txt file with their preferred text editor, such as Notepad.
- Look for the line that says “eula=false” and change this line to say “eula=true” before saving your changes and closing the text editor.
- There should also be a server.properties file, which should be opened with a text editor. Some players may need to select “Open With” and choose their text editor manually to open this file correctly.
- Players should take note of the line that says “query.port” as this line will list the ports that players should forward on their router when applicable. Although this is not always necessary, depending on the hardware configuration of the player. Traditionally, players will need to forward the default port of 25565 in their router settings, but the port may be different in some circumstances.
- The rest of the server properties file will dictate how the server works. For example, “game mode” can be set to Survival, Creative, or Adventure to set the server’s default game mode. Players can also set things like difficulty, PvP access, maximum number of players, and whether the Nether can be accessed.
- Once all the necessary changes have been made to server.properties, players can save the changes. Then all players need to do is repeat steps 3 and 4 to run their server. If everything has been done correctly, the .jar file should start running on the server and players should be able to connect to it.
- If players did not set a specific IP address in their server properties file, the server IP will be tied to the IP address of their machine. For example, if a player’s PC address is 192.168.0.5, the same will be said for the server. Players can connect to the server through the Minecraft multiplayer menu by entering the IP followed by the forwarded port. For example, an address for players to connect to might be 192.168.0.5:25565. The player hosting the server can also enter local server to connect directly to your server from the multiplayer menu.
Once these steps have been followed, Minecraft players and the server admin should be able to connect to the server and start playing. If changes are needed in the future, the administrator can reopen the server.properties file in their text editor and adjust any of the listed settings as needed.