How To Make A Minecraft Server Public


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 start!



#1-Create a server folder



Create a new folder in whatever directory you choose. This folder will house all server files.



#2-Download JAR File



You can download the official Minecraft Server .jar file here. It should be saved to your newly created server folder.



#3-Create your run script



You will need a script to execute the.jar file in order to host the server. 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 a new version is released, change this to the name in the.jar file you have previously downloaded.



The flags Xmx andXms are used to allocate memory for the server. You can increase these values in muliples of 10024.



Save this file as run.bat if you're on Windows. If you are on Linux, save this file as run.sh. Make sure to change the extention of.txt to allow the file's proper execution.



#4-Run it



If you are on Windows, simply double click the newly created run.bat.



Linux users will first need to make the file executable. First, type the command: chmod+x run.sh. This will make the script you have just created executable. You can then run the script by using./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 and change the line "eula=false" to "eula=true". Save and close the file.



#6 - Test the server locally



Now that the EULA agreement is accepted, you can run the script to start the server again (run.bat or run.sh). You should now see more files created in the server folder. After the configuration is complete and the world has been generated, you can test your server to verify that it works.



Click on multiplayer to open Minecraft. Enter localhost in the server address bar and click Connect.



Congratulations, you now own your very own Minecraft server! Now you want to be able play with friends, so you'll need to open up your server to incoming connections.



#7: Find both internal and exterior IP addresses



You will need to find your internal (private) IP address in order to port forward in the next step, and you will need your external (public) IP for other people to connect to your server.



To find your internal IP, first:



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 on Linux by pressing ctrl+ alt + t. You will see a list of Wi-Fi adapters and cards.



Depending on how you are connected to the internet (Wi-Fi or Ethernet), look for the IPv4 Address (which starts with 192.168) under your internet connection type-this is your private IP address.



To find your IP address from outside,



Google will give your public IP address by simply typing "my IP", in Google. Alternatively, you can go to https://whatismyipaddress.com/ and it will also tell you your public IP address.



#8- Port Forwarding



Port forwarding refers to the process of opening a port on your local network so that incoming traffic can connect with a service. In this instance, we will open the default Minecraft port, which is 25565.



In order to port forward, you must have admin access to your local network. You can access many home routers simply by entering 192.168.1.1 on a web browser. Enter your admin credentials, then look for the "portforwarding" settings. This is usually under an "advanced settings", "advanced setup", or "networking" tab.
MINECRAFT SERVERS LIST



For example, on a NetGear router, port forwarding is 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 both the internal and the external port ranges, use 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 will be saved.



#9-Edit the 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 like:



(192.168.1.88 will be whatever your private IP is.)



You can also modify other Minecraft settings in the file, such as difficulty, game mode, and PvP. Once you have made all of your changes, save this file and close it.



#10-Test server's public IP



Now that the port is open for communication and the settings are properly configured, run the server again by either clicking the run.bat file (Windows) or running the command ./run.sh (Linux). Once the server has finished loading you can check if your server runs using your public IP adress that you have obtained in step 7. Voila! Voila! You and your friends are now able to play on the server by entering the same public address into their Minecraft client.



Thank you



Minecraft has been an integral part of my gaming experience. I get so much nostalgia each time I create new worlds. This guide was created to make it easy for everyone to have the 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.