How to Setup a Modded Minecraft Server (1.12.2)

422,531

20

96

Introduction: How to Setup a Modded Minecraft Server (1.12.2)

About: Gaming and pixels and making the dings, these are a few of my favorite things.

Minecraft is a fun game to play with friends, and modding the game can add many more possibilities. Server hosting websites or Minecraft Realms cost a monthly subscription to use. If you don't have the money to have a separate website host the server for you, setting up your own server for free will be your best option. Here's how to setup a modded Minecraft server in 1.12.2 (works with most past and future updates, you can find the specific .jar file for whatever version you're hosting).

Supplies

What you will need:

- A computer that can run modded Minecraft and a server at the same time (4gb of ram should be minimum)

- A copy of Minecraft

- A secure internet connection

- Access to your router's login information

Step 1: Install Minecraft, Add Forge Mod Loader

In order to play on a Minecraft server, you need... Minecraft! If you've purchased Minecraft, you can download it at https://my.minecraft.net/en-us/store/minecraft/#ow...

It'll download MinecraftInstaller.msi, launch it and follow the instructions to install it. Once installed, you will want to launch vanilla 1.12.2 at least once in order to install all the important stuff. Under the Installations tab, click + New, then under Versions, select 1.12.2. Select 1.12.2 from the drop down menu, and press PLAY. Once it fully loads to the menu screen, exit the game.

Next, you'll want to download and install Forge, go to this link and click on Windows Installer. https://files.minecraftforge.net/

Launch it, and click OK. Wait for it to install.

Step 2: Install Forge Server, Accept EULA

In order to start hosting a server, you need these files. Reopen the Forge installer and select Install Server, and the location you want it to be installed.
Now that its been installed, double click on forge-1.12.2-14.23.5.2838-universal.jar to launch it. once you do that, the folders logs, mods, and eula.txt will appear in the folder.

Double click on the eula.txt to open it, and change the false to true. ctrl+s or click File then Save, then close the txt. Once that's done, relaunch the .jar. You'll see a bunch more files appear in the Server folder, and a window open up titled Minecraft server. Congrats! You now have a local modded Minecraft server! But we're not here for that, we're trying to create a server that anyone can connect to. Close the Minecraft server window.

Step 3: Gather Your Mods

You can't have a modded Minecraft server without mods! You'll be able to find almost every mod ever made at this link https://www.curseforge.com/minecraft/mc-mods?filte...

Once you download the mods' .jar file, make a copy of it. Open your server's mods folder and paste the mods there. Then you'll want to move the original mods you copied to your .minecraft folder. to find it, press the windows key and type %appdata% into the search box. Once there, click on .minecraft. In there should be a folder labeled mods. If there isn't, make one. Put all of the same mod files into the mods folder.

Step 4: Reduce Lag

Before you even launch the server again, there is a way to majorly reduce the lag on the server and your computer. Right click in the Server folder and create a new text document. Title it Server Launcher. Open it, and copy and paste the following text:

java -Xmx2048M -Xms2048M -jar forge-1.12.2-14.23.5.2838-universal.jar -o true nogui

The number 2048 actually says how much ram the server will be using, 2048 being 2gb, or 4096 being 4gb. replace the number to suit how much ram you want to use.

Once the text has been pasted into the text file, select File, then Save As. Change the Save as Type to All Files, and rename the file from Server Launcher.txt to Server Launcher.bat. Now double click on the .bat file every time you want to start the server. Launch the server, let it fully load, then close it.

Step 5: Port Forward the Server

(Since this section deals with IP addresses, there will be no pictures for privacy stuff, cause IDK how IPs can be used to harm)

The server now works locally! Anyone on the same IP as yours can now join the server. In order to allow people not on the same IP to connect,you'll need to port forward your server. To do this, google Whats my IP? on Google. Take the number it gives you, copy it, and paste it into the address bar. This will most likely take you to your router's website where you can manage your router's settings. Enter the password to your router to continue. My router is a Linksys, you'll want to google around to find the steps with your specific router. You'll want to find the Port Range Forwarding section of your router, and enter in the following information.

Application Name: Minecraft server
Start ~ End Port: 25565 - 25565
Protocol: TCP
Device IP: ENTER COMPUTER'S IP HERE

Enabled: True

In order to get your computer's IP, hold down the windows key and press R. In the box that pops up, type cmd. When the command prompt opens up, type ipconfig. Look for the line labeled as IPv4 Address, and copy the IP address there. Type that number in for your Device IP above.

Step 6: All Done!

The server should now be up and running! Double click the .bat file to launch the server, start up Minecraft, and enter in your public IP (when you googled "what's my IP") in the multiplayer menu. Connect to the server, and enjoy your new world!

Games Contest

Participated in the
Games Contest

2 People Made This Project!

Recommendations

  • Hour of Code Speed Challenge

    Hour of Code Speed Challenge
  • Reclaimed Materials Contest

    Reclaimed Materials Contest
  • Laser Challenge

    Laser Challenge

96 Comments

0
TheLord110
TheLord110

Question 9 months ago

when i download the cursed forge installer it doesnt give me a universal file and when i try to run the 2 files i did get they do nothing (i tried downloading universal separately it has the same reasult)

Screenshot 2021-02-15 100911.png
0
IamNotIntelligent
IamNotIntelligent

Answer 2 days ago

change the universal.jar on the .bat to your current forge jar

0
redalpha333
redalpha333

Question 9 months ago on Step 2

No mod floder apperas instead a 1.12.2 ,json file apperas

0
Unwrittencode
Unwrittencode

10 months ago

Whenever I open the .bat file a command panel opens for a second, then closes. Is this supposed to happen?

0
IamNotIntelligent
IamNotIntelligent

Reply 2 days ago

the replace forge-1.12.2.23.5.2838-universal.jar with your current forge file like *forge-1.12.2-14.23.5.2855.jar* for me

0
Teddy0007
Teddy0007

Reply 7 months ago

it happen to me too, you just gotta make sure that the -Xmx????M has a bigger/same value than/like the -Xms????M value

0
Selahattin GENC
Selahattin GENC

Reply 6 months ago

java -Xmx2048M -Xms2048M -jar forge-1.12.2-14.23.5.2838-universal.jar -o true nogui
you have to change forge-1.12.2-14.23.5.2838-universal.jar to your forge's name. etc forge-1.12.2- ...........

Ekran görüntüsü 2021-05-19 114655.png
0
pombaldiogo13
pombaldiogo13

Reply 9 months ago

i have the same problem

0
albu.adam
albu.adam

Reply 9 months ago

Open the eula.txt and change eula=false to eula=true

0
Matfiozo
Matfiozo

Reply 9 months ago

I have done this and the problem still is a thing. What else should I do?

0
mills888
mills888

Question 9 days ago

dont understand the portforwarding i have tried everything and it still wont work

0
bobocstefan2002
bobocstefan2002

Question 7 weeks ago

My universal.jar folder don't open i double click on it and do nothing. Yes i accepted eula

0
juanprietoryser122005
juanprietoryser122005

Question 3 months ago

doesnt happen anything when I double click on the forge....jar (I accepted the eula), but if I run the "minecraft_server.1.12.2.jar" the server starts but doesnt run the mods.

0
jleo9711
jleo9711

Answer 2 months ago

I’m having the same issue… did you figure anything out yet or Na?

0
JericA6
JericA6

5 months ago

how am I suppose to fix this I can't start my server because of this [15:10:30] [Server thread/INFO] [FML]: Unloading dimension 1 and [15:10:30] [Server thread/INFO] [FML]: Unloading dimension -1

0
mastergeko4
mastergeko4

Question 6 months ago

I'm having trouble with the guide on step 4. I've created the Start Server notepad, pasted the command, and replacing the default forge name with the version of forge I'm using, and it doesn't work. When I double-click my newly created .bat, the Windows Command Processor will open for a split second and immediately close itself. The eula is set to true, so does anyone know what's going on here?

0
adamfunk99
adamfunk99

7 months ago

The .bat file doesn't open and I have changed the eula=false to eula=true. Please help.

0
yukichan209.yd
yukichan209.yd

Question 9 months ago on Step 4

No matter what I do I can't get the .bat file to open up for more than half a second. Can anyone help??