Choose the Minecraft version you want to run
Choose a mod loader such as Forge, Fabric, or NeoForge
Install Java version required by your Minecraft version and mod loader
Download the server files for your chosen mod loader
Create a new folder for the server
Place the server files into the folder
Run the server installer if required
Accept the EULA by editing eula.txt to true
Download the same mods you want to use on the server
Place the mod files into the server’s mods folder
Make sure all players use the same Minecraft version and mod loader
Make sure all players install the same mods and mod versions
Allocate enough RAM to the server
Edit server properties if needed
Open port 25565 on your router and firewall
Start the server using the correct launch file or command
Connect using your local IP for LAN or public IP for internet play
Keep backups of the world and server files
Update mods, loader, and server carefully when needed
