Running minecraft server on windows server

How to play Minecraft on LAN [TLauncher]

The game has long introduced the option to create a local server in your own world, and all who are on your local network will be able to connect to your server. In general, everything is simple, but there are many limitations, in this article all is described in detail. Select the desired configuration type from the contents and follow the steps described.

Server Configuration When You Are on the Same Wi-Fi or LAN Network with Another Player

If several PCs are not far from each other and are on the same Wi-Fi or LAN network (connected by cable), then this setting will suit your case.

Windows: On the PC where the server is to be started, open the Start menu and enter cmd in the search to open this program:

In the opened window, type ipconfig and press enter. Look for your local IP, which starts with 192.168.*.* , for example, 192.168.1.47 (yours will be the other!), and copy it.

MacOS: To find the local IP, open the Terminal (you can type «Terminal» in the Mac search and find it), type ifconfig |grep inet in the window, look for the IP that starts with 192.168.*.* and copy it.

Now open TLauncher, choose the version with the TL icon and run the game (it is better to login to the TLauncher.org account). If you select the version without TL icon, you will not be able to connect to the server without a Mojang license.

Go to your world and in the Pause menu (Esc) click Open to LAN. The chat will display a message about the successful opening of the server, as well as the server port, 31790 in the example (you will have another).

Now on another PC that needs to be connected to your server, you should also open the version with the TL icon (also, the version of the game must be the same as on the first PC), go to Multiplayer, open Direct connect.

Now enter the IP address + port that we got earlier, 192.168.1.47:31790 in the example. If everything is OK, the connection will be established! You can now play on the server with a friend.

Server Configuration When Playing over the Internet with Another Player Using Hamachi

If you cannot be with another player on the same network physically, because PCs are far from each other, you can create a special network over the Internet using Hamachi.

On both PCs, do the following: Create a Hamachi account and download the program (after clicking on the link, the Download button is in the center).

Install the program and authorize under the created data. Now, on one of the PCs logged in Hamachi click on «Create a new network«, enter ANY network name and any password. The new network will appear in the window.

Now open TLauncher, choose the version with the TL icon and run the game (it is better to login to the TLauncher.org account). If you select the version without TL icon, you will not be able to connect to the server without a Mojang license.

Go to your world and in the Pause menu (Esc) click Open to LAN. The chat will display a message about the successful opening of the server, as well as the server port, 60000 in the example (you will have another).

Читайте также:  Windows cmd window color

On another PC click on «Connect to an existing network», enter the network name and password created earlier. If the connection is successful, your friend’s PC will be visible in the Hamachi window.

Then you should also open the version with the TL icon on another PC (also, the version of the game must be the same as on the first PC), go to Multiplayer, open Direct connect.

Now, enter the address from Hamachi in the IP field (of the PC, on which the server is opened) + port that we got earlier, 25.60.187.78:60000 in the example. If everything is OK, the connection will be established! You can now play on the server with a friend.

Setting up a Local Minecraft Server with Mods

Once you have configured the server to play on the same WiFi (LAN) network or using Hamachi, you can install mods and play with your friends with them. The instruction is very simple.

Install on all clients exactly the same mods, everything should be identical, also the Forge version itself should be the same, for example, ForgeOptiFine 1.12.2. Remember that the version should be with the TL icon!

Now create and connect to the server according to the same instructions above, depending on your network. Done, you can play Minecraft with mods!

Possible Problems and Solutions

When connecting to the server «Invalid Session» or «Check User Name» error appears.

Solution: You need to run the version with the TL icon (otherwise you need a game license). If you run precisely this one, check whether in «Account Management» -> «Use TLauncher skins» checkbox is activated (in the launcher).

When connecting to the server «Io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection time out: no further information» error appears.

Solution: The game could not find information about such a server, so the network configuration is not correct. Try to disable anti-virus and firewall on the host computer or configure it correctly.

When connect to the server, chunk loading is in progress, but immediately after that the server drops the connection (there is a disconnection).

Solution: The network configuration is correct, but the antivirus and firewall are dropping the connection. Disable them or configure them properly.

When connecting to the server the following appears: 1.14.2: Bad packet ID 26; 1.13.2: Bad packet ID 27; 1.7.10: is stuck on Logging in. or «received string length longer than maximum allowed»

Solution: The length of your nick more than 16 characters, make it shorter.

How to Make a Minecraft Server on Ubuntu, Windows and CentOS

In this tutorial, we will show you how to make a Minecraft server on various platforms. This way, you’ll have more freedom to play the game with your own sets of rules.

How to Make a Minecraft Server in hPanel?

Setting up a Minecraft server with Hostinger has never been easier. Once you have chosen your plan and made your purchase, login to your Hostinger account. From there, we’ll take you through the rest of the steps:

  1. In the hPanel, under the Setup section, you’ll see your newly purchased Minecraft server ready to be set up. Click the Setup button on the right.
  2. Follow the given instructions, such as filling in your server name and root password, to complete the initial setup process.
  3. Once that’s done, you’ll find your Minecraft VPS server under the VPS section in your hPanel’s home screen. Click Continue to go to the Server Managment screen.
  4. To start your newly set up server, simply click the Start button under the Server Status and wait for a couple of minutes.

Congratulations, your Minecraft server is now live. In the Server Managment page, you’ll find the Minecraft Control Panel login details under the Notes section along with any additional information you might need when when managing your server.

Читайте также:  Интерфейс mac os для windows vista

How to Make a Minecraft Server on Linux?

In this section, you will learn how to make a Minecraft server on a machine that runs on Ubuntu or CentOS.

Before we start, ensure that you have a root SSH access to your machine. If you are using Hostinger’s Minecraft Hosting plan, the login credentials are in the Servers tab of hPanel.

The process of creating servers for Minecraft on these two operating systems is quite similar, but there are a few differences you’ll notice when installing the required packages.

1. Installing Java and Screen

Before we begin, keep in mind that the minimum operating system requirements for the following tutorial are Ubuntu 16.04 and CentOS 7.

Connect to your server via SSH. Open the built-in terminal shell (PuTTY for Windows users) and type the following command:

NOTE: Don’t forget to change both values with your real username and server IP address. When prompted, enter your username and password.

  1. A Minecraft server requires Java. Therefore, check whether it’s installed on your system by executing this command:
  1. Proceed to the second section of this tutorial if you already have Java installed. However, if Java is not found, follow the next step.
  2. Run these two commands to download the latest software packages and install Java:
    • On Ubuntu:
    • On CentOS:
  1. Once Java installation is complete, you can install Screen:
    • On Ubuntu:
    • On CentOS:

2. Installing and Running Minecraft Server on Linux

Now that Java and Screen are ready, we can begin installing a Minecraft server.

  1. Create a new directory where you will store all your Minecraft configuration files. This step is optional, but we highly recommend it so you can keep your system organized. To do this, type:
  1. Move to the newly created directory by entering:
  1. Before we can download the required configuration files, install wget:
    • On Ubuntu:
    • On CentOS:
  1. Use wget command to download the Minecraft server properties file:
  1. In this example, the latest server version is 1.15.2. You should visit this link to check if a newer version is available for download. If so, change the link for the command above.
  2. Run the Minecraft server properties file by entering this command. If you want to use the graphical user interface, simply remove the nogui part from the command:
  1. At this point, the server program will not start yet. Instead, it will create a EULA (end-user license agreement) file that we need to accept first.
  2. To accept Minecraft’s EULA, open eula.txt file with Nano text editor:
  1. Find the line that says:

Then change it to:

Once done, don’t forget to save your changes.

  1. Once that is done, activate Screen so the server can run in the background:
  1. You can change the name based on your preferences.

Good job! You have successfully installed your custom Minecraft server on Ubuntu or CentOS.

3. Running Minecraft Server

Now, we are going to run the Minecraft server for real this time. Type the following command again:

The minimum requirement to run the server is 1024MB (1 GB) of RAM. That’s why we’ve entered 1024M after the -Xmx and -Xms parts. If you want to allocate more RAM, you can change the value to 2048M or above, given that your server offers such specifications.

Here’s what you should see after executing the command:

The server is now running in the background. To leave Screen, press CTRL + A, then D.

You can re-open the Screen window by typing this command:

Should you need to customize the server settings, open the server’s properties file with Nano:

Nonetheless, we suggest that you stick with the default configuration to prevent any issues.

How to Make a Minecraft Server on Windows?

You can also set up a Minecraft server on your Windows PC. What’s great, the steps are easier than the previous one.

Читайте также:  Не запускаются некоторые приложения windows 10

  1. Open the command prompt and check the Java version on your computer:
  1. If it matches the latest server version on the official website, you can continue to the next step. In case it’s unavailable or outdated, download the installer.
  2. Download the setup software (.jar file) from the official server page.
  3. Create a new folder for the Minecraft server and move the .jar file to that folder.
  4. Double-click the setup program to create a eula.txt file.
  5. Open the EULA file and change the value from false to true.
  6. Run the Minecraft server by double-clicking the .jar file. To do this, you might need to allow the program through the firewall.

Alternatively, you can open the command prompt and navigate to the dedicated Minecraft folder. For example:

Then, execute this command:

If you see a similar screen, it means your Minecraft server has successfully started:

How to Make a Minecraft Server on macOS?

Lastly, let’s see how we can make a Minecraft server on macOS:

  1. Note that Java is included by default on newer versions of macOS. You can double-check by entering this command on your terminal:
  1. If it’s not available, you may download and install a legacy version of Java from the Apple website.
  2. Create a dedicated folder for your Minecraft server. Then, download the Minecraft server setup program and put it in that folder.
  3. Open TextEdit and set the format to plain text (Format ->Make Plain Text). Paste the following line:
  1. Save this file as startmc.command in the same directory where the Minecraft server file resides.
  2. To make startmc.command file work, the execute permission is needed. To do so, open the terminal and head to your Minecraft folder. For example:
  1. Grant the required permission using this command:
  1. If the steps are done correctly, you should be able to start the server by double-clicking the startmc.command file. It will open a new terminal window.
  2. A missing file or directory warning might appear at this time. Don’t worry, this is completely normal when you run a Minecraft server for the first time.

Why You Should Make Your Own Minecraft Server?

With more than 68 million players, Minecraft remains one of the most popular video games in the world.

Minecraft offers unlimited possibilities to create a virtual world, a place where you can let your imagination loose and build some incredible pieces of work. What’s great, you can take such experience to a whole new level by making your own Minecraft server.

Owning a private server gives you more control over your gameplay. You can invite your friends or other users, create your own rules, install any mods, and much more.

Unfortunately, many people think that building a private Minecraft server is difficult and expensive. However, the truth is, you only need a little bit of knowledge about the command-line interface. What’s more, you can set up the server on your Windows, Linux, or macOS computer, so there’s no need to buy a new machine.

If you’re ready, it’s time to learn how to make a server for Minecraft.

Conclusion

If you want to make Minecraft more exciting, you should consider making a private Minecraft server. You’re guaranteed to have much more freedom when playing Minecraft.

Thankfully, in this article, you have learned how to make a Minecraft server on Linux (Ubuntu and CentOS), Windows, and macOS. What’s great, the steps are easy to follow and won’t cost you a fortune.

Good luck and happy building!

Domantas leads the content and SEO teams forward with fresh ideas and out of the box approaches. Armed with extensive SEO and marketing knowledge, he aims to spread the word of Hostinger to every corner of the world. During his free time, Domantas likes to hone his web development skills and travel to exotic places.

Оцените статью