Skip to main content

Hosting a Fabric Server

This guide will walk you through how to host a Fabric server that will support Fabric mods. Please note running mods can be highly unstable and may require more resources than a vanilla server.

Requirements

  • A computer that will be on when you or your friends want to play
  • A good internet connection
  • A basic understanding of networking
  • At least 5GB or more of RAM free at all times

Steps

  1. Download the server software from the official website.
  2. Create a new folder on your computer and place the server software in it.
  3. Rename the server software to fabric-server-launch.jar.
  4. Install Java on your computer.
  5. Create a new text file in the folder and name it start.sh.
  6. Open the file and paste the following code:
start.sh
java -Xmx5G -Xms5G -jar fabric-server-launch.jar nogui
pause
info

This code will allocate 5GB of RAM to the server. If you have more RAM available, you can increase the -Xmx and -Xms values.

  1. Save the file and double click on it to start the server.
  2. Open the eula.txt file and change eula=false to eula=true.
  3. Open Terminal by pressing Cmd + Space and typing Terminal.
  4. Navigate to the folder where the server software is located by typing cd path/to/folder.
  5. Type chmod +x start.sh to make the file executable.
  6. Type ./start.sh to start the server.
  7. Share your IP address with your friends. You can find your IP address by searching "what is my IP" on Google.
  8. Have your friends open Minecraft and click on "Multiplayer". Then click on "Add Server" and enter your IP address.
info

In order for people outside your network to connect to your server, you will need to port forward your router. You can find a guide on how to do this here.

By default, you will need to port forward 25565.

Tips

  • Make sure your computer is powerful enough to run the server
  • Keep your server software up to date
  • Use a whitelist to prevent unwanted players from joining
  • Back up your server regularly