Players can host a Minecraft server through professional services, but that’s not the only option available. Thanks to the game’s Java-based roots, 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 they provide them with the necessary tools to do so.
Players can download the necessary files from the game’s official website. After a little setup, they can connect to their server with their friends and enjoy the game together.
Step by step guide to hosting your own server on 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 seems at first glance.
Mojang also provides a guide on the game’s official site to help players through the process. With one folder and a few files, players will have a basic server that they can modify to their liking or play immediately in version 1.19.
This method also applies to previous versions of the game, as Mojang provides many versions of the game’s server file.
Minecraft players can follow the steps below to host their own server for free:
- Go to the game’s official site, where the server’s Java file is hosted. Version 1.19 players will want to make sure they download the server.1.19.0.jar file for the current server version.
- For convenient access, players should create a folder in which to place this downloaded .jar file. It can be named whatever a player wants, but something like “Minecraft Server” will do. Once players have set up their folder, they need to place their downloaded .jar file there.
- Players should then open the command prompt and enter CD followed by the directory of the folder where the .jar file is located. For instance, C:UsersAdminDesktopMinecraftServer or whatever directory the folder is 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 receive 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 favorite text editor such as Notepad.
- Find the line that says “eula=false” and edit that line to read “eula=true” before saving changes and closing the text editor.
- There should also be a server.properties file, which will need to 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 note the line that says “query.port”, as this line lists the ports that players will need to forward on their router, if any. Although not always necessary, it depends on the hardware configuration of the drive. Traditionally, players will need to forward the default port of 25565 in their router settings, but the port may be different under certain circumstances.
- The rest of the server properties file will dictate how the server operates. For example, “gamemode” can be set to Survival, Creative, or Adventure to set the server’s default game mode. Players can also set parameters such as difficulty, PvP access, maximum number of players, and Nether accessibility.
- Once all 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 was executed correctly, the .jar file should start running the server and players should be able to connect to it.
- If players have not set a specific IP address in their server properties file, the server IP address will be tied to their machine’s IP address. For example, if a player’s PC address is 192.168.0.5, so will the server. Players can connect to the server through the Minecraft multiplayer menu by entering the IP address followed by the forwarded port. For example, an address that players can connect to might be 192.168.0.5:25565. The player hosting the server can also enter localhost connect directly to their server from the multiplayer menu.
After following these steps, Minecraft players and the server admin should be able to connect to the server and start playing. If future changes need to be made, the administrator can reopen the server.properties file in their text editor and change any of the listed parameters as needed.