1.18.2 Forge Minecraft Server Setup (Windows)

In this guide I will show you how to set up a Forge 1.18.2 Minecraft Server on Microsoft Windows. Here are the files you will need to download.

Downloads

  1. Forge 1.18.2
  2. Java 17 OracleJDK (You may already have this installed run "java -version" in cmd to check what version you are currently running.)

Setup

Now that you have downloaded the necesary files we can begin to set up the server.

  1. Run jdk-17_windows-x64_bin.exe to install Java 17. Then run "java -version in cmd to and make sure the java version begins with 17.
  2. Run forge-1.18.2-x.x.x-installer.jar and select the Install Server option. I also recomend changing the target directory to \Desktop\Forge-1.18.2-Server or somewhere else that you can easilly access.
  3. Open the folder you installed Forge Server to and run run.bat it will open a cmd window and begin creating files and directorys in the Forge Server folder.
  4. After run.bat finishes open eula.txt and change eula=false to eula=true. Save eula.txt.
  5. You can now add the mods that you would like to use to the newly created mods folder.
  6. Run run.bat again to start the server. Allow JavaJDK to access the features Windows Security has blocked.

Post Installation

Your Minecraft Server is now running!!! You can now access it on your local network simply by using your ip address in the server ip when adding the server. For people not on your local network to connect to the server there are some more steps you need to do. Before that we need to go over some basic details about how to run the server.

  1. To stop the server type "/stop" into the cmd window the server opened.
  2. To change the amount of ram you give your server open user_jvm_args.txt and uncomment (delete the #) line that says "# -Xmx4G" then replace the 4 with the number of Gb of ram you want the server to be able to use. Save the file.
  3. You can find most settings that you might want to change in the server.properties file. While in this file add your ip to the server-ip line and check what server-port is set to (25565 by default)

Port Forwarding

To allow people on networks other than your lan to connect to your server you will need to enable port forwarding. Since this is the same for every version of minecraft I have a seperate guide for it found here.