> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Make a 1.18.2 Minecraft Server


## Want to Create a Minecraft 1.18.2 Server? Here's Everything You Need to Know

Thinking of setting up your own Minecraft server with version 1.18.2? You've come to the right place. This version—released as part of the Caves & Cliffs: Part II update—is one of the most exciting in recent memory, thanks in no small part to its total overhaul of terrain and chunk generation. Whether you're hosting a few friends or running a multiplayer world with dozens of players, 1.18.2 is a good option.

Don't already host with us? 10,000+ server owners trust Sparked Host for lag-free Minecraft worlds. [Claim your server savings](https://sparkedhost.com/minecraft-server-hosting?utm_source=referral&utm_medium=knowledge_base&utm_campaign=kb_redirect&utm_content=intro) to get higher performance at less $ per month.

## Why Choose Minecraft 1.18.2?

Minecraft 1.18.2 is no ordinary patch—it introduced deep world design and block placement logic changes. With its enhanced cave generation, taller mountains, and more natural-feeling default terrain than ever before, it's the ideal jumping-off point for your next big build or survival world.

## Key Features of Minecraft 1.18.2:

* Taller world height and deeper world depth, stretching vertical build limits from Y=-64 to Y=320
    
* New cave types, including dripstone and lush caves
    
* More realistic height and terrain chunk generation
    
* Remodeled biome and height-based ore generation
    
* Smoother upgrading with seamless world blending from past versions
    
* New ambient music that enhances gameplay

## How to Change Your Minecraft Server Version to 1.18.2

Thankfully, making a 1.18.2 Minecraft server on a Sparked Host server is easy because of the simple GUI.

To make a Minecraft server that runs on version 1.18.2:

* Shutdown your Minecraft server.
    
* Select versions on the righthand side
    
    ![](https://images.surferseo.art/23addf87-67bb-4490-9adf-af503324694b.png =1024x497)
* Click on `VIEW BUILDS` for `Vanilla`
    
* Scroll down and select 1.18.2
    
    ![](https://images.surferseo.art/3ac2bc0d-3a76-4746-b26e-1c693def28d7.png =1024x507)
* Press install. Do note that if you had another version before that you were playing on, you should backup those files.
    
    ![](https://images.surferseo.art/7cf1dfd4-e75f-463c-a814-4deb3e4a2ea4.png)
* Restart your server

## How to Make a Minecraft 1.18.2 Server on a VPS

*Minecraft servers can be run on Windows, macOS, GNU/Linux, and BSD operating systems. This tutorial assumes that you're on a* ***Linux system*** *for your VPS. If you're on windows, this won't help.*

This process will be a little more difficult if you don't know linux commands. It's good to know the basic commands like `cd` and `ls` before proceeding. If you want to learn more about Linux commands, see [https://pwn.college/linux-luminarium/](https://pwn.college/linux-luminarium/) 

However, if you don't know these commands, you can blindly follow this tutorial no problem either way.

### Setting up Java

*Having Java installed is* **required. **

For this Minecraft version, we'll at least want a Java version of at least Java 17 installed. For this tutorial, we'll have the latest version of Java installed so that if you wanted to switch the version of your Minecraft server, you can.

Also there are some performance benefits with Java 24 (see here: [https://www.youtube.com/watch?v=oTc16DAMTqg](https://www.youtube.com/watch?v=oTc16DAMTqg)

Here are some quick terms that are good to know:

* Java Virtual Machine (JVM) - Interprets the Java code.
    
* Java Runtime Environment (JRE) - Used to **run** Java programs, can't be used to create them. You'll need this to run your server. Includes the JVM as well.
    
* Java Development Kit (JDK) - Used to **create** Java programs. Installing a JDK will include a JRE.

You might also have java already installed. Check if you do with the command:

```
java --version
```

If it's greater than 17 then you can skip this part of the tutorial. However, if you're running mods then you might want to consider lowering the version if the mod requires it.

For this tutorial, we'll install the latest version of Java at [https://www.oracle.com/java/technologies/downloads/](https://www.oracle.com/java/technologies/downloads/).

Choose the download based off of what CPU architecture you have.

![](https://images.surferseo.art/47107be4-923e-451c-bc62-63afdcfd63e2.png)

You can determine this with the command (in the image example: x86_64 = I would install the x64 compressed archive):

```
uname -p
```
![](https://images.surferseo.art/cf7eb426-34e0-40bb-90dd-0c22ef07b540.png)

Also, download the Compressed Archive type because it's easier to decompress (unless you know what you're doing of course).

Once it installs, decompress it with:

```
tar -xzvf jdk-24_linux-x64_bin.tar.gz
```

*(Replace jdk-24 *linux-x64_bin.tar.gz with the file name)_

Although this is now installed, we'll need to add this to PATH. In my example, I already had java 21 installed and I'm replacing it with java 24.

First, I echoed the PATH environment variable:

![](https://images.surferseo.art/5066243c-5602-4817-987b-734db9e0c7b4.png)
```
echo $PATH
```

Next, I:

* Got the current directory
    
```
pwd
```
    
* Rewrote the path variable with what it was before **except I removed and replaced** the older java version with the newer one I installed.
    
```
/home/julian/.sdkman/candidates/java/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
```
    
    became  
    
```
/home/julian/Downloads/jdk-24/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
```
  
    With the  
    
```
export PATH=
```
  
    command.  
    
**Be very careful with what you set this command to because it can mess up other commands if set improperly.**

![](https://images.surferseo.art/a68d7db9-360d-4582-b579-0f44c38af02d.png)

After that, check your version with:

```
java --version
```

If the path was set properly then it should work!

### Downloading the 1.18.2 Server File

First, go to the Minecraft website at [https://www.minecraft.net/en-us/article/minecraft-java-edition-1-18-2](https://www.minecraft.net/en-us/article/minecraft-java-edition-1-18-2) and scroll down to install the server jar file.

![](https://images.surferseo.art/ec1b9fcd-2ccc-431b-8d57-d596303e1149.png)

After installing, cd into your `Downloads` folder (or wherever it downloaded) and `mkdir` a new directory to store your server files in. `mov` the jar into that new folder.

![](https://images.surferseo.art/40cdaa38-362f-4b4c-8853-0b51f4a6e1f6.png)

### Starting Your Server

`cd` into the folder that you moved your server jar file into. To get your minecraft server running, run the server jar file with `java -jar server.jar` (replace server.jar with the name of the server jar file if it's different). You can also run this command with the flag `-nogui` if you don't want any gui (say, you're running remotely).

The Minecraft server requires you to accept the EULA (end user license agreement) before it can run:

```
[16:04:38] [ServerMain/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
```

Edit the eula.txt file with your preferred editor and change the `eula` variable to `true`. I used nano (please don't get mad vim supremacists).

![](https://images.surferseo.art/bed5ff67-89dc-4a54-998d-51658d2a4d99.png)

Then, rerun your server. It should start creating your world files and generating the world.

If it's stuck at 0% for a while, you might need to allocate more ram. This can be done with adding the flags `-Xms` and `-Xmx` to your command. [`-Xms` changes the starting memory and `-Xmx` changes the max memory.](https://stackoverflow.com/a/14763095/15982771) 

For example:

```
java -jar -Xms2048M -Xmx2048M
```

*(2048M is equal to 2048 Megabytes* [*which is 2gb](https://www.unitconverters.net/data-storage/mb-to-gb.htm). Computers operate in binary so it has to be to the power of 2 storage wise to be efficient.)*

### Changing Server Settings

1. Shutdown your server by sending `stop` or `Ctr+C`
    
2. Use `vim` or `nano` to open `server.properties` (your server properties file)
    
    ![](https://images.surferseo.art/f34826e8-6d87-47d2-8240-0a931811c0d7.png =1024x561)
3. Edit
    
4. Save
    
5. Restart the server

### Setting Up Port Forwarding

*Port forwarding is important if you want friends on different networks to run minecraft and play on your server. It comes with some caveats and you will have to share your IP address which might be problematic. *

The default port for Minecraft servers is 25565. This can be changed in `server.properties`

We'll also enable the firewall and add the port before we forward through the router. If your system is debian based the firewall is ufw (uncomplicated firewall):

```
sudo ufw enable
cat server.properties | grep server-port
sudo ufw allow 25565
```
![](https://images.surferseo.art/984a5ec8-ac73-455b-b2b9-2f6d309fd8d3.png)

(Of course, replace 25565 with the port number that server.properties has)

### Connecting to Your Minecraft Server

You can connect to your Minecraft server by entering its IP address in the Minecraft client. To get your server's **local** IP, do (you might have to `sudo apt install net-tools` if it's not already installed):

```
ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
```


If it pings, that's your *local* ip.

![](https://images.surferseo.art/f476e976-18cc-4804-88cf-1ed109a6625a.png)

**Your local IP address is NOT the same as your public IP address (if you want people outside your network to access your server, you'll need to know this address).**

After the port has been added to the firewall, devices in your *local network* should be able to join (but not devices outside that!)

Access your router in the browser with your router's IP address. (This is the *default gateway* address when you do `ipconfig` on a windows machine or `route -n` on a linux machine)

For this tutorial I'm using an AT&T router.

![](https://images.surferseo.art/a6ae545d-3f3c-4835-9ce1-e330ecb690ba.png)

1. Go to "Firewall"
    
2. Go to NAT/Gaming
    
3. Go to Custom Services and create a new service
    
    ![](https://images.surferseo.art/a623c623-4114-48dd-81bb-3cc155624dce.png)
4. Add go back and then select the service as the custom service that you added. Then select the device that's running the server. *I'm using a virtual machine which is why I selected vbox.*
    
    ![](https://images.surferseo.art/1c88ba8f-5b53-4449-8932-f8f65ea58415.png)

*This took me so long to figure out but I eventually got port forwarding to work! I tested it through a hotspot and also the website* [https://portchecker.co/check-v0](https://portchecker.co/check-v0) *is helpful to use. Turns out that I had selected the wrong device under* **Needed by Device** *but now it works which is awesome.*

## Joining The Minecraft Server

Joining a Minecraft server is extremely easy: 

1. Open Minecraft version 1.18.2
    
2. Obtain the local IP of the server with the command ( **If you want to join from the SAME network)**:
    
```
ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
```
  
      
    **If you want to join from a different network, go to** [https://whatismyipaddress.com/](https://whatismyipaddress.com/) **and use that address.**
    
3. Open Minecraft add the server IP under "add server", If it's a different port from the traditional 25565 for connections, then you'll need to append `:1234` to the end of it (replace 1234 with the actual port of course)
    
4. Join and connect to the server

## Still have some questions?

If you had any issues or failed to do port fowarding, you can contact SparkedHost at [https://sparkedhost.com/contact](https://sparkedhost.com/contact). Also, you can join our discord server at [https://discord.com/invite/sparked](https://discord.com/invite/sparked) where you can get your problem fixed fast.