In just 10 minutes, you can create a world for yourself and your friends with this simple guide.
Today, I will be showing you the easiest way to set up a public vanilla Minecraft server for you and your friends, without spending a single dollar. Let's get to it!
#1-Create a folder server
Create a new folder in the directory you choose. This is where all server files will be downloaded.
#2-Download JAR file
You can download the official Minecraft Server .jar file here. It can be saved to the server folder that you just created.
#3-Create the Run Script
To actually host the server you will need a script that runs the.jar file. Open a new text file, and copy the following command into it:
The minecraft_server.1.16.4.jar is the current Minecraft server version available at the time of writing this. If there is a new version released, simply change this to the name of the .jar file that you previously downloaded.
The flags Xmx andXms are used to allocate memory for the server. You can increase these values by multiplying them by 1024.
If you are on Windows, save this file as run.bat. If you are on Linux, save this file as run.sh. To ensure that the file can be executed properly, change the extention to.txt.
i'm bonnie and you are
#4-Run the script
If you are on Windows, simply double click the newly created run.bat.
Linux users will need the file to be made executable. First, type the command "chmod +x" run.sh. This will make the script you have just created executable. The script is now executable by running./run.sh.
#5-Accept EULA
After running the script you will be prompted to accept the EULA agreement. You can close this window and look in the server folder to see a number new files. Open the file "eula.txt", change the line eula=false into eula=true, then save and close it.
#6 - Test the server locally
Once the EULA agreement has been accepted, you can now run the script to restart the server (run.bat/run.sh). You will see more files in the server folder. Once you have set up the world and configured the server, you can test it to make sure it works.
Open Minecraft and click multiplayer. In the server URL bar, enter localhost. Click connect.
Congratulations, you now own your very own Minecraft server! But now, you want to be able to play with friends, so you will have to open up the server to incoming connections.
#7-Find IP addresses both internal and externe
To port forward, you will need to locate your internal (private IP address). You will also need your external (public IP) IP to allow other people to connect with your server.
To begin, find your internal IP.
Open the command prompt by typing cmd into the search bar and hitting enter. Enter the command ipconfig to see a list of Ethernet adapters and Wi-Fi cards.
Open a terminal using ctrl+alt + t. Type the command "ifconfig" to see a list with Ethernet adapters and Wi-Fi cards.
Depending on the type of internet connection you have (Wi-Fi, Ethernet), look for your IPv4 Address. It starts with 192.168 and is your private IP.
To find your external IP
Google will give you your public IP address if you just type "my IP" into Google. Alternatively, you can go to https://whatismyipaddress.com/ and it will also tell you your public IP address.
#8- Port Forwarding
Port forwarding is the process of opening up a specific port on your local network, so that incoming traffic can connect to a service. In this case, we will be opening up the default Minecraft port, 25565.
To port forward, you need admin access to your network. You can access many home routers by simply typing 192.168.1.1 into a web browser. Enter your admin credentials and search for the "port forwarding” settings. This will usually be under the "advanced options", "advanced set", or "networking” tab.
On a NetGear router, port forwarding can be found under "Advanced", -> “Advanced Setup”, -> “Port Forwarding/Port Triggering”.
Click on "Add Custom Services" to continue. Give the service name anything recognizable, like "Minecraft Server". Make sure TCP/UDP selection is made under the service type. For the internal and external port ranges, enter the default Minecraft port "25565". For the interal IP address enter the private IP address that you found in step 7. Click Apply and your changes are saved.
#9-Edit server configuration files
Open the server.properties with the text editor of your choice. Scroll down until you find server-port or server-ip. Make sure that the server-port is set correctly to the port you have just opened for port forwarding. Server-ip is your private (internal) IP address.
These two fields should look something like:
Whatever your private IP is, (192.168.1.88) will be it.
You can also modify other Minecraft settings in the file, such as difficulty, game mode, and PvP. Save and close the file after you have made all your changes.
#10-Test the public IP address of the server
Now that the port is open and the settings have been configured properly, you can launch the server again. You can either click the run.bat File (Windows) oder run the command./run.sh for Linux. After the server finishes loading, you can test whether your server works using your public IP address (found in step #7). Voila! You and your friends can now play on the server by entering this same public IP address into their Minecraft clients!
Thank you
Minecraft has been a huge part of my gaming history, and I get so much nostalgia every time I create a new world. I put this guide together to help everyone be able to share this same experience. There are so many ways to create a Minecraft server, but I wanted to write a guide to provide the simplest and quickest way to help you get started. If this if your first time creating your own Minecraft server, or you've done it a hundred times before, I hope this guide was easy to follow, and I wish you the best of luck.
Trackback URL: https://bobcattomato78.bravejournal.net/trackback/12613057