Minecraft remains one of the most popular games in the world, and playing with friends on your own server is the best way to experience it. Whether you want a vanilla survival world, a mini-game hub, or a modded adventure, hosting your own Minecraft server gives you full control.
This guide covers how to set up a Minecraft Java Edition server on Windows, Mac, or Linux in 2026. We’ll walk through every step from downloading the server files to connecting with friends.

What You Need to Make a Minecraft Server
Before you start, you need a few things. A computer with at least 4GB of RAM is recommended for a small server with a few friends. You also need a stable internet connection and the latest version of Java installed. Minecraft servers run on Java Edition, so you need a Minecraft Java Edition account to play.
If you play on Bedrock Edition, check out our guide on Minecraft enchantments for swords and other Bedrock tips. For Java Edition players, the server software is free to download from the official Minecraft website.
Step 1: Download the Server Software
Head to the official Minecraft website and download the server.jar file for the latest version. The file is usually named something like “server.jar” and is only a few megabytes in size. Place it in a new empty folder on your computer so everything stays organized.
You have several server software options. Vanilla is the official server from Mojang and works perfectly for standard survival gameplay. For plugins and extra features, consider Spigot or Paper. Paper is the most popular choice today because it offers excellent performance and plugin support.
Here is a quick breakdown of the main options:
- Vanilla – The official Minecraft server. Simple and reliable for basic survival worlds.
- Spigot – A fork of Bukkit that adds performance optimizations and plugin support.
- Paper – A fork of Spigot with even more optimizations and bug fixes. The community standard in 2026.
- Forge – Required if you want to run mods. Use this for modded Minecraft servers.
- Fabric – A lightweight mod loader that is faster than Forge for many modpacks.
For most players, Paper is the best choice. It is free, well-maintained, and works with thousands of plugins. If you are new to Minecraft servers, check out Minecraft color codes to customize your server messages.
Step 2: Configure the Server
Once you have the server.jar file, create a text file called “run.bat” (on Windows) or “run.sh” (on Mac/Linux) in the same folder. The command inside should allocate enough RAM to your server. For a small server with 2-4 players, 2GB of RAM is enough. For larger servers, use 4GB or more.
Here is a sample startup command for Windows: java -Xmx2G -Xms2G -jar server.jar nogui
For Mac or Linux, use the same command in your terminal from the server folder. Double-click the batch file or run the shell command to start the server for the first time. It will generate several files including the important server.properties file.
Open server.properties in a text editor to change key settings. Set “online-mode=true” to only allow players with legitimate Minecraft accounts. Change the “server-port” if you want to use a different port (the default is 25565). You can also set a “motd” (message of the day) that shows in the server list.
Need help with other server or tech topics? Read our guide on how to solve CPU fan errors to keep your server hardware running smoothly.
Step 3: Port Forwarding
For your friends to connect from outside your home network, you need to set up port forwarding on your router. Log into your router’s admin panel (usually at 192.168.1.1 or 192.168.0.1) and find the port forwarding section. Create a new rule that forwards TCP port 25565 to the local IP address of your server computer.
Your local IP address looks like 192.168.x.x. You can find it by running “ipconfig” on Windows or “ifconfig” on Mac/Linux. Make sure your server computer has a static local IP so the port forward keeps working after a restart.
If port forwarding sounds complex, you can use a service like ngrok or playit.gg that creates a secure tunnel without touching your router settings. These are great for temporary servers with friends.
Step 4: Find Your Public IP and Share It
Your public IP address is what your friends need to connect to your server. Visit a site like whatismyip.com to find it. Share your IP address followed by the port number with your friends. For example: “123.45.67.89:25565”.
If your IP changes frequently (most home internet connections have dynamic IPs), consider using a free dynamic DNS service like DuckDNS or No-IP. These give you a permanent address like “yourserver.duckdns.org” that always points to your current IP.
Your friends open Minecraft Java Edition, click Multiplayer, then Add Server. They paste your IP address and click Done. If everything is set up correctly, they see your server in the list and can join.
Step 5: Install Plugins (Optional)
If you chose Spigot or Paper, you can add plugins to enhance your server. Plugins add features like land protection, economy systems, mini-games, and more. Download .jar plugin files and place them in the “plugins” folder inside your server directory. Restart the server and the plugins load automatically.
Some popular plugins for 2026 include EssentialsX for basic commands, WorldEdit for building, and GriefPrevention for protecting builds. You can find thousands of free plugins on sites like SpigotMC and Polymart.
Looking for more Minecraft content? Check out our guides on the best Minecraft enchantments for armor and best helmet enchantments to gear up properly.
Troubleshooting Common Issues
If your friends cannot connect, the most common issue is the firewall blocking the port. Make sure Windows Defender Firewall or your antivirus allows Java through on port 25565. Also check that your router’s port forwarding rule is correct and pointing to the right local IP.
If the server crashes on startup, check the “latest.log” file in the logs folder. Common causes include insufficient RAM allocation, Java version mismatch, or incompatible plugins. Make sure you have Java 17 or newer installed for Minecraft 1.20+ servers.
For more Minecraft tips, see our guide on the best potions in Minecraft to prepare for your adventures.
Final Thoughts
Running your own Minecraft server is rewarding and gives you complete freedom over your world. You can invite friends, install mods, and create the exact experience you want. Start small with a vanilla server and experiment with plugins and mods as you get comfortable.
Have fun building, exploring, and creating memories with your friends. Minecraft is better together!
