SOLVED! How to Set Up a Minecraft Mod Server? - Netlack
1. Installing JavaMinecraft modded servers require Java because Minecraft is a Java-based game. You need to make sure Java is installed on your computer to run the server.1.1 Checking if Java is InstalledPress Windows+R to open the "Run" window.Type cmd and press Enter. This will open the Command Prompt.In the Command Prompt, type the following command:java -version If Java is installed, it will show the installed version. If Java is not installed, follow the steps below to install it.1.2 Downloading and Installing JavaIf Java is not installed or if it’s not the correct version (modded Minecraft servers typically use Java 8 or 11), follow these steps:Go to the official Java website.Download the appropriate Java Development Kit (JDK) version for Windows.Run the downloaded file and follow the instructions to install Java. After installation, run the java -version command again in the Command Prompt to verify that the installation was successful.2. Downloading Minecraft Server FilesTo set up a modded Minecraft server, you will use Minecraft Forge. Forge allows you to run mods on a Minecraft server.2.1 Downloading Minecraft ForgeGo to the official Minecraft Forge website.Choose the Minecraft version you want to set up the modded server for (e.g., 1.12.2 is a popular version).Select the "Installer" option to download the Forge setup file.Save the downloaded .jar file to a folder. This folder will be where your server will run from (for example, you can create a folder on your desktop called "MinecraftModdedServer").3. Setting Up the Minecraft ServerNow we will set up the modded Minecraft server using Forge.3.1 Running the Forge Server FileGo to the folder where you saved the Forge .jar file.Hold Shift and right-click inside the folder, then select "Open Command Window Here" (on Windows 11 or 10, it might say "Open PowerShell Window Here").Type the following command:java -jar forge-xxx-installer.jar --installServer Replace forge-xxx-installer.jar with the exact name of the Forge file you downloaded. This command will download and set up the necessary Forge server files.Once the setup is complete, you will see new files in the folder.3.2 Running the ServerIn the folder, you will see a file named forge-xxx-universal.jar. This is the file that runs your server.Before running the server, you need to agree to Minecraft’s EULA (End User License Agreement). Open the eula.txt file that was created in the folder and find this line:eula=false Change it to:eula=true Save the file and close it.Now, open the command window in the same folder again and run this command:java -Xmx2048M -Xms2048M -jar forge-xxx-universal.jar nogui This command starts the server using 2 GB of RAM and without a GUI (graphical interface). The -Xmx and -Xms values represent the amount of RAM the server will use. If you want to allocate more RAM (e.g., 4 GB), change the values (e.g., -Xmx4096M).After starting the server, you will see a series of messages in the console. When the server has successfully started, you will see a message saying the server is online.4. Installing Mods on the ServerNow that the server is set up, we can add mods.4.1 Downloading ModsGo to a site like CurseForge to download mods that are compatible with your server version.The downloaded mod files will have a .jar extension.4.2 Adding Mods to the ServerIn your server folder, there should be a folder named mods (if it doesn't exist, create one).Move the .jar files of the mods you downloaded into the mods folder.5. Port Forwarding and Making the Server AccessibleIf you want your friends to connect to your server over the internet, you need to port forward. Otherwise, the server will only be accessible on your local network.5.1 Port Forwarding (Router Settings)To access your router, open a web browser and type your router’s IP address (usually 192.168.1.1 or 192.168.0.1) in the address bar.Find the Port Forwarding settings in your router’s control panel.Forward port 25565, which is the standard port for Minecraft servers.During the port forwarding process, enter the local IP address of the computer hosting the server (you can find this by typing ipconfig in the Command Prompt).6. Connecting to the ServerOnce your server is up and running, you and your friends can connect to it.Open Minecraft and click on Multiplayer.Click Direct Connect.For the server IP address, if you are playing locally, type localhost. If you’ve done port forwarding, you can use your public IP address (you can find it by visiting WhatIsMyIP.com).7. Managing the ServerWhile the server is running, you can use commands in the console to manage it. For example, you can give players permissions or save the world.To stop the server: Type stop in the console and press Enter.To kick a player: Use the command /kick playerNameTo change the time: Use the command /time set day (to set the time to day)
1.1 Checking if Java is Installed
1.2 Downloading and Installing Java
2. Downloading Minecraft Server Files
2.1 Downloading Minecraft Forge
3. Setting Up the Minecraft Server
3.1 Running the Forge Server File
3.2 Running the Server
4. Installing Mods on the Server
4.1 Downloading Mods
4.2 Adding Mods to the Server
5. Port Forwarding and Making the Server Accessible
5.1 Port Forwarding (Router Settings)
6. Connecting to the Server
7. Managing the Server
1. Installing Java
Minecraft modded servers require Java because Minecraft is a Java-based game. You need to make sure Java is installed on your computer to run the server.
1.1 Checking if Java is Installed
- Press Windows+R to open the "Run" window.
- Type
cmdand press Enter. This will open the Command Prompt. - In the Command Prompt, type the following command:
java -version - If Java is installed, it will show the installed version. If Java is not installed, follow the steps below to install it.
1.2 Downloading and Installing Java
If Java is not installed or if it’s not the correct version (modded Minecraft servers typically use Java 8 or 11), follow these steps:
- Go to the official Java website.
- Download the appropriate Java Development Kit (JDK) version for Windows.
- Run the downloaded file and follow the instructions to install Java. After installation, run the
java -versioncommand again in the Command Prompt to verify that the installation was successful.
2. Downloading Minecraft Server Files
To set up a modded Minecraft server, you will use Minecraft Forge. Forge allows you to run mods on a Minecraft server.
2.1 Downloading Minecraft Forge
- Go to the official Minecraft Forge website.
- Choose the Minecraft version you want to set up the modded server for (e.g., 1.12.2 is a popular version).
- Select the "Installer" option to download the Forge setup file.
- Save the downloaded
.jarfile to a folder. This folder will be where your server will run from (for example, you can create a folder on your desktop called "MinecraftModdedServer").
3. Setting Up the Minecraft Server
Now we will set up the modded Minecraft server using Forge.
3.1 Running the Forge Server File
Go to the folder where you saved the Forge
.jarfile.Hold Shift and right-click inside the folder, then select "Open Command Window Here" (on Windows 11 or 10, it might say "Open PowerShell Window Here").
Type the following command:
java -jar forge-xxx-installer.jar --installServerReplace
forge-xxx-installer.jarwith the exact name of the Forge file you downloaded. This command will download and set up the necessary Forge server files.Once the setup is complete, you will see new files in the folder.
3.2 Running the Server
In the folder, you will see a file named forge-xxx-universal.jar. This is the file that runs your server.
Before running the server, you need to agree to Minecraft’s EULA (End User License Agreement). Open the eula.txt file that was created in the folder and find this line:
eula=falseChange it to:
eula=trueSave the file and close it.
Now, open the command window in the same folder again and run this command:
java -Xmx2048M -Xms2048M -jar forge-xxx-universal.jar noguiThis command starts the server using 2 GB of RAM and without a GUI (graphical interface). The
-Xmxand-Xmsvalues represent the amount of RAM the server will use. If you want to allocate more RAM (e.g., 4 GB), change the values (e.g.,-Xmx4096M).
After starting the server, you will see a series of messages in the console. When the server has successfully started, you will see a message saying the server is online.
4. Installing Mods on the Server
Now that the server is set up, we can add mods.
4.1 Downloading Mods
- Go to a site like CurseForge to download mods that are compatible with your server version.
- The downloaded mod files will have a
.jarextension.
4.2 Adding Mods to the Server
- In your server folder, there should be a folder named mods (if it doesn't exist, create one).
- Move the
.jarfiles of the mods you downloaded into the mods folder.
5. Port Forwarding and Making the Server Accessible
If you want your friends to connect to your server over the internet, you need to port forward. Otherwise, the server will only be accessible on your local network.
5.1 Port Forwarding (Router Settings)
- To access your router, open a web browser and type your router’s IP address (usually 192.168.1.1 or 192.168.0.1) in the address bar.
- Find the Port Forwarding settings in your router’s control panel.
- Forward port 25565, which is the standard port for Minecraft servers.
- During the port forwarding process, enter the local IP address of the computer hosting the server (you can find this by typing
ipconfigin the Command Prompt).
6. Connecting to the Server
Once your server is up and running, you and your friends can connect to it.
- Open Minecraft and click on Multiplayer.
- Click Direct Connect.
- For the server IP address, if you are playing locally, type
localhost. If you’ve done port forwarding, you can use your public IP address (you can find it by visiting WhatIsMyIP.com).
7. Managing the Server
While the server is running, you can use commands in the console to manage it. For example, you can give players permissions or save the world.
- To stop the server: Type
stopin the console and press Enter. - To kick a player: Use the command
/kick playerName - To change the time: Use the command
/time set day(to set the time to day)
