Connecting To A Minecraft: Java Server
Connect To The Server
Your server instance is now functional. To play the game, download the Minecraft client from the official Minecraft website.
Install and launch the client for your operating system and sign in.
On the next screen, enter the server name in the field Server Name, and the IP address of the server in the field Server Address.
Install Your Vanilla Minecraft Server
A “Vanilla” server is an instance without any add-ons or plugins. You will experience the game the way it was created by the developers.
First you will need to copy/paste the download link for the server software. On the official Minecraft website, right-click on the download link and select Copy Link Location from the context menu.
Back in your command line terminal, make sure you are still in the server folder and use wget to download the file. Replace download_link with the actual URL from your clipboard.
~/server$ wget download_link
Before launching the server, you need to agree to the End User License Agreement. To achieve this, enter the following command.
~/server$ echo"eula=true"> eula.txt
A file named eula.txt is now located at the root level of your server, containing the line eula=true. This will tell the software that you accept the Minecraft EULA. We invite you to review the terms and conditions on the Minecraft website.
Your server can now be started.
During step 1, we installed the screen package which allows opening multiple sessions of the terminal . We will start Minecraft in a new session that can run in the background. Using screen can be very handy since it gives you the possibility to launch multiple Minecraft servers simultaneously.
First, we will create a new shell named minecraft1:
~/server$ screen -S minecraft1
The active terminal window will switch to a new shell session. You can create multiple shells list them with this command:
Don’t Miss: Minecraft 24/7 Server Hosting Free
Why You Shouldn’t Host Your Server For Free
Yes, you can host your Minecraft server for free. But we would strongly advise against doing so.
Free hosting providers are typically slow and unreliable. Donât you want your virtual world to be alive and well at all times? Free hosting would definitely spoil the whole experience with its poor performance.
If youâre not paying money, the provider has no obligation towards you. So, if at any point they decide to shut down your virtual world, they can do so without asking and thereâs nothing you can do about it.
One other way that free hosting providers will make money is by selling your personal data. Not all of them do it, but do you really want to take that risk?
The hardware restrictions of free hosting will limit you dramatically. You wonât be able to invite as many friends to play as you wish, and youâll have severe limitations on how many materials, constructions, and NPCs you can add.
If you wanted to start your own Minecraft server to have unlimited creative freedom and a reliable platform, a free server will only lead to disappointment.
Luckily, thereâs another option you can use.
How To Setup Minecraft Server On Linux

Add the new minecraft user to the sudo group.
- Create a new user for the Minecraft server and add it to the sudo group with following
sudo usermod -aG sudo Minecraft user
- install the wget package
- Install Java with these steps
sudo apt install openjdk-8-jdk -y
sudo java version
- Creating a new directory as a repository for Minecraft server files
sudo mkdir minecraftdir
- For moving to the Minecraft directory
cd minecraftdir
- You will now need to download the Minecraft server.
sudo wget -O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.11.2/minecraft_server.1.11.2.jar
- Allocate required permission to make the downloaded Minecraft t server executables
sudo chmod +x minecraft_server.jar
sudo vi eula.txt and add Eula=true to agree to the license agreement conditions
Start Minecraft server
- Start Minecraft server with the following command
sudo java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
Note: 1024 M refers to the allocated memory you can change with your preferred value)
- Stop command will stop the currently running Minecraft server)
stop
- For running Java command sudo java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
- For exiting screen window press
CTRL+A+D
- For returning to the screen
sudo screen -r
- Voila the Minecraft server has been successfully installed on your Ubuntu.
Don’t Miss: How To Get Minecraft Windows 10
An Easier Way Of Sharing Your Server With External Users
- Download ngrok from. Youll need to sign up for a free account as well and follow their setup instructions.
- Open ngrok.com website and sign up for free. It is a tool to will make your server visible over the internet
- Now Start your Minecraft and run following in terminal for sharing the local Minecraft server
ngrok tcp 25565
- You will see the following message
Forwarding tcp://ngrok.com:12345 -> localhost:25565
Note that the 12345 stands for a unique number for you to establish a connection. Note it down
It will make your server visible over the net
- Request the friend to start Minecraft and click Multiplayer
- Next, click Direct Connect
- Now enter the following line
ngrok.com:12345
Where 12345 should be replaced with the unique number that you noted in the earlier step
- Thats all. Your friend is now connected and you can play
Note: An alternative to Direct Connect is Add Server followed by ngrok.com:12345
It can be used for troubleshooting issues
Running A Minecraft Server From Home
You dont need a top-of-the-line system to run a Minecraft server a desktop computer is ideal.
While you can run a Minecraft server and play on the same machine, youll need a more powerful system to do it.
And lastly, use a wired ethernet connection for your server instead of wireless. A wired connection is more reliable.
Also Check: Minecraft Redeem Codes Pc
How To Join A Minehut Server
Minecraft Java players can directly join the server by adding the server address to the game .
On the other hand, Bedrock or Pocket Edition players need to go through an additional step to join the server. First, you’ll have to join the bedrock.minehut.com server on port 19132. Then in the chat, type “/join servername.minehut.gg” to access the server. If the server is up, you’ll be automatically teleported to that particular world.
For example, if your Minehut server address is “random.minehut.gg“, you’ll first join “bedrock.minehut.com“, then type “/join random.minehut.gg” in chat to join the server.
How To Set Up A Minecraft Server For Free
Want to enjoy Minecraft with your friends but don’t have the funds to buy a private server? Don’t worry, here’s how you can set one up for free.
Minecraft is one of the best survival games played by millions of gamers worldwide. But unlike other multiplayer titles, you need to set up your own private Minecraft server to play the game with your friends. And having a server up and running 24/7 can be expensive, not to mention the hefty price you paid for the game in the first place.
But do you really have to empty your pockets and buy a server to enjoy Minecraft with your friends? Not at all. Luckily, websites like Minehut and Aternos allow you to set up your own “free” Minecraft server, with no hidden costs whatsoever.
Recommended Reading: Server Icon Minecraft Maker
How To Create A New Server In Minecraft 118
It hasn’t always been this way, but hosting a Minecraft server has gotten much easier than it used to be, and this remains the same for Minecraft 1.18.
Although Microsoft and Mojang allow for players to rent small private servers through Minecraft Realms, some players would rather save the money and use their own hardware. Third-party server hosting sites also allow players to host on high-quality hardware for a subscription fee, but that isn’t necessary as long as players have a good computer and a solid internet connection. There are limits, but self-hosting in Minecraft can still be very rewarding.
Best Minecraft Server Hosting Summary
To make your choice a bit easier, weve compiled this quick comparison table, highlighting the key parameters of the top 5 hosts:
Host | |
Multicraft |
As you can see from the list above, each of the Minecraft server hosting providers is considered the best for various, oftentimes different reasons. Because of this, choosing the right one for your particular needs becomes very important.
In the meantime, the most balanced and consistent among all of the above Minecraft hosting options, in our opinion, is Hostinger. Its a bit on the expensive side with a base plan starting at $8.95/month but their onboarding and interface are perfect for beginners who simply want to host games they can enjoy with their friends. This hosting provider also caters to more advanced users looking to build custom worlds and take advantage of numerous mods.
At the moment, Hostinger is running a promotion on all hosting plans with discounts reaching up to 90%, so its a great time to check out their Minecraft hosting offer!
Alternatively, if youre looking for a more budget-friendly option, you cant go wrong with Shockbyte, and their cheapest plans are starting at just $2.50 / month. High uptime stats and various plans that you can potentially upgrade to will guarantee you a stress-free hosting experience.
Did you have any of experiences with any of the Minecraft hosts? What did we miss?Let us know in the comment section below.
Also Check: How To Make A 24/7 Minecraft Server Free
Also Readarticle Continues Below
Once players have followed these steps, all that is required for players to hop into the server is to open Minecraft, click multiplayer, then add server, and then input the IP address of the machine hosting the server. If the hosting player doesn’t know their IP address, they can head over to What is my IP to get that info. It is highly advised to only give out this information to trusted friends and players, as leaving an IP address out in the open can cause security concerns.
Setting Up A Server For Bedrock Edition

Don’t Miss: Minecraft Skin Import Image
Recommended By Our Editors
Head to the official site,
Scroll down to the Server Software section, and look for the Java Edition Server link.
Your browser may state that this file may be harmful to your computer, or something to that effect. You’re downloading the file directly from the Mojangs official site, so you dont need to stress this. Click the Keep option.
Once the file has finished downloading, which should not take long at all, drag it into the Server folder.
Open the Server folder you should see the server.jar file inside. Technically, you could simply click the file, and let it create all the extra files you need. Don’t do that. Instead, you’re going to create a batch file, a script that launches the server for us. There’s a reason for this: You’ll want to specify commands as needed, and spot errors via the command window. Writing a batch file lets you do that. This isn’t nearly as daunting as it sounds. In fact, the instructions to do this are on the server.jar download page.
Download The Serverjar File
Once you have the latest version of Java downloaded, you need to server.jar file.
If youre following along with the images/gifs in this tutorial, you may find you have a different version number than what is showing. Thats okay, the steps should be the same.
You may get a warning from your computer saying that this file may be harmful. This is a normal warning for any .jar file. If you dont know where it comes from, then you should be worried about these. That being said, I think we can trust Minecraft on this one.
If youre given the option, save this file into the My Awesome Server folder. If not, just copy and paste or drag the download into the folder once it finishes.
You May Like: Best Free Minecraft Server Hosting With Mods
Choosing Your Server Version
Minecraft is perhaps the greatest sandbox game of all time. What this refers to as there are an unlimited number of modifications that can be made to the game itself along with the ability to create whatever you would like in the game. When you are creating a Minecraft server you can predetermine what the server will be able to do by choosing the type of server that you would like to create.
The best Minecraft servers are mostly based on Spigot and plugins since they are much easier for players to connect to, but there are many other popular types. When you start the main server executable all of the required server files will be created and you will be able to edit this after the first boot. There are a few different server versions which you can learn more about below before making your selection.
Vanilla
There are many different kinds of servers to play in Minecraft. The default version of Minecraft comes from Mojang themselves and is also known as Vanilla. As of the time of writing this article the latest version is 1.8.1. This vanilla Minecraft is the foundation for all of the other server versions. Typically enhanced servers are older server versions which have been heavily modified to increase performance and expand functionality. This is a great way to get started with hosting your Minecraft server as there are not many additional steps to setting up this type of server. It is easy to get your very own server up and running on this type.
Bukkit
Forge
Update To The Latest Java
To kick things off we need to make sure were running the latest version of Java. Thankfully, this is really easy. Head over to the Java website and click on verify Java version. That will check to see which version youre running and set you up with the latest should you be running an older version.
Read Also: Free Minecraft 24 7 Hosting
A Brief Overview Of The Three Ionos Server Options
A Dedicated Server with specially allocated hardware in our data center is an excellent solution for hosting individual applications. As a basis for server applications like a Minecraft server, this server model is ideal. Billing takes place per-minute with this package.
We guarantee an external broadband connection of the server with up to 400 Mbit/s regardless of the chosen server model.
However, to make a Minecraft server, the virtualized resources you rent with a vServer or Cloud Server are also perfectly suitable. Even if you dont get dedicated hardware components here, the selected performance is guaranteed at all times. When deciding between vServer and Cloud Server, the payment model might make a difference:
If you are unsure when and how often you want to run your Minecraft server, a Cloud Server Package is the perfect choice, as here we only charge for the resources you actually need and use.
If you rent a vServer, you pay a fixed monthly amount, regardless of whether your Minecraft server is running or not. However, if youre planning on continuous operation, you will get significantly lower costs than with a cloud server.