How to Set Up a Minecraft Server

A complete guide to running your own Minecraft server on Windows — Vanilla, modded, or plugin-based

Why host your own server?

Hosting your own Minecraft server gives you full control over the experience. You decide the rules, the mods, the world, and who can join. Unlike paid hosting services, running a server on your own PC is completely free — you just need a computer that can handle it.

Benefits of self-hosting:

  • No monthly fees — your PC is the server
  • Full control — install any mods, plugins, or datapacks you want
  • Low latency — if you're playing on the same machine, connection is instant
  • Privacy — your world data stays on your computer
  • Learning experience — great way to learn about networking and server management

System requirements

Minecraft servers are mostly RAM and CPU-dependent. Here's what you need:

ComponentMinimumRecommended
OSWindows 10Windows 10/11
RAM4 GB total (2 GB for server)8+ GB total (4-6 GB for server)
CPUDual-coreQuad-core or better
Storage1 GB free10+ GB SSD
InternetAny broadband10+ Mbps upload for remote players

Modded servers need more RAM. Forge servers with large modpacks typically need 4-8 GB of RAM allocated to the server alone. Vanilla and Paper servers can run well with 2-4 GB.

Choosing a server type

There are several types of Minecraft servers, each with different features:

TypeBest forMod/Plugin support
VanillaPure Minecraft experienceNone (datapacks only)
PaperPerformance + pluginsBukkit/Spigot/Paper plugins
SpigotPlugins with broad compatibilityBukkit/Spigot plugins
ForgeLarge modpacks, total conversion modsForge mods
FabricLightweight mods, fast updatesFabric mods

Not sure? Start with Paper if you want plugins (like economy, minigames, or anti-cheat), or Vanilla if you just want a simple server for friends.

The easy way: MC Server Manager

The fastest way to set up a Minecraft server is with MC Server Manager. It handles Java installation, server downloads, configuration, and management all in one app.

Step 1: Download and install

Get MC Server Manager from the Microsoft Store or download directly from this site. The Lite version is free.

Step 2: Create a server

  1. Open MC Server Manager
  2. Click Create Server
  3. Enter a name for your server
  4. Choose your server type (Vanilla, Paper, Forge, Fabric, or Spigot)
  5. Select the Minecraft version you want to run
  6. Set the RAM allocation (2-4 GB is a good start)
  7. Click Create

The app will download the server files and set everything up automatically. If you don't have the right version of Java, it'll offer to download that too.

Step 3: Start the server

  1. Select your server from the list
  2. Click Start
  3. Wait for the console to show Done! — this means the server is ready

That's it! Your server is running. Connect in Minecraft using the address localhost (if playing on the same PC) or your local IP (if playing from another device on the same network).

The manual way: command line

If you prefer to set things up yourself, here's how to create a Vanilla server manually:

Step 1: Install Java

Minecraft servers require Java. Download and install the version that matches your Minecraft version:

  • Minecraft 1.17+ — Java 17 or newer
  • Minecraft 1.20.5+ — Java 21 or newer
  • Minecraft 1.16 and older — Java 8

You can verify Java is installed by opening a command prompt and typing:

java -version

Step 2: Download the server jar

Download server.jar from the official Minecraft website. For other server types, download from their respective sites (PaperMC, SpigotMC, Forge, Fabric).

Step 3: Create the server folder

  1. Create a new folder anywhere on your PC (e.g. C:\MinecraftServer)
  2. Move the downloaded server.jar into this folder

Step 4: First run

Open a command prompt in the server folder and run:

java -Xmx4G -Xms4G -jar server.jar nogui

This allocates 4 GB of RAM to the server. Adjust the numbers based on your available memory.

The first run will fail and create an eula.txt file. Open it and change eula=false to eula=true, then run the command again.

The EULA: By changing this to true, you agree to the Minecraft End User License Agreement. MC Server Manager handles this step automatically.

Step 5: Server is running

Once you see Done! For help, type "help" in the console, your server is ready. Type stop in the console to shut it down gracefully.

Configuring your server

Server settings are stored in the server.properties file in your server folder. You can edit this with any text editor (or use MC Server Manager's built-in properties editor). Here are the most important settings:

PropertyDefaultDescription
server-port25565The port players connect on
gamemodesurvivalsurvival, creative, adventure, or spectator
difficultyeasypeaceful, easy, normal, or hard
max-players20Maximum number of players allowed
motdA Minecraft ServerMessage shown in the server list
white-listfalseOnly allow approved players to join
online-modetrueVerify players own Minecraft (keep this true)
pvptrueAllow player vs player combat
spawn-protection16Radius around spawn where only ops can build
view-distance10How far players can see (lower = better performance)

Restart required. Most property changes require a server restart to take effect. In MC Server Manager, just click Stop then Start (or use the Restart button).

Connecting to your server

From the same PC

  1. Open Minecraft and go to Multiplayer
  2. Click Add Server
  3. Set the server address to localhost
  4. Click Done, then double-click to join

From another device on your network (LAN)

  1. Find the host PC's local IP address (run ipconfig in command prompt — look for the IPv4 address, e.g. 192.168.1.100)
  2. In Minecraft, add the server with that IP address (e.g. 192.168.1.100)
  3. If you're using a non-default port, add it after a colon (e.g. 192.168.1.100:25566)

MC Server Manager shows both addresses — your LAN IP and public IP are displayed in the server details panel, ready to copy and share.

Letting friends join from outside your network

By default, your server is only accessible on your local network. To let friends join over the internet, you have two options:

Option 1: Port forwarding

Port forwarding tells your router to send incoming Minecraft traffic to your PC. This is the traditional method and works well, but requires router access. See our detailed Port Forwarding Guide for step-by-step instructions.

Option 2: Cloudflare Tunnel (no router access needed)

MC Server Manager includes a built-in Cloudflare Tunnel feature that creates a secure public URL for your server — no port forwarding, no router configuration, and your IP stays private. Just enable it in the app and share the URL with friends.

Recommended for beginners. Cloudflare Tunnel is the simplest way to let friends connect. No networking knowledge required.

Adding mods and plugins

Plugins (Paper / Spigot)

Plugins add features to your server without requiring players to install anything. Popular plugins include EssentialsX (commands and utilities), WorldEdit (building tools), and LuckPerms (permissions).

With MC Server Manager: Use the built-in CurseForge browser to search, install, and update plugins directly from the app. Dependencies are detected automatically.

Manually: Download plugin .jar files and place them in your server's plugins folder, then restart the server.

Mods (Forge / Fabric)

Mods can change gameplay dramatically — new blocks, dimensions, mechanics, and more. Unlike plugins, all players need to install the same mods on their Minecraft client.

With MC Server Manager: Browse and install mods from CurseForge directly in the app. Share your mod list with friends so they can install the same ones.

Manually: Download mod .jar files and place them in your server's mods folder, then restart the server.

Compatibility matters. Make sure mods and plugins match your server's Minecraft version. Mixing incompatible versions is the most common cause of server crashes.

Keeping your server running smoothly

Backups

Always keep backups of your world. There's nothing worse than losing hours of building progress to a crash or corruption. MC Server Manager creates automatic backups every time you stop the server, keeping the last 5.

Manually: Copy your server's world folder (and world_nether / world_the_end if they exist) to a safe location regularly.

Performance tips

  • Allocate enough RAM — but not too much. 4 GB is a good sweet spot for most servers. Allocating more RAM than needed can actually hurt performance due to longer garbage collection pauses.
  • Use Paper instead of Vanilla — Paper has significant performance optimizations while remaining compatible with vanilla gameplay.
  • Lower view-distance — reducing this from 10 to 6-8 can dramatically improve performance with many players.
  • Use an SSD — Minecraft servers do a lot of disk I/O. An SSD makes chunk loading much faster.
  • Pre-generate the world — generating new chunks on-the-fly is expensive. Pre-generating a border using a plugin like Chunky reduces lag when players explore.

Monitoring

Keep an eye on TPS (ticks per second). A healthy server runs at 20 TPS. If it drops below 15, players will notice lag. MC Server Manager shows real-time TPS, CPU, and RAM usage in the resource monitor — both in the app and on the web dashboard.

Scheduled restarts

Restarting your server periodically helps clear memory leaks and keeps performance consistent. MC Server Manager lets you set up automatic restarts on an interval, at a specific time of day, or when the server is empty.

Frequently asked questions

How much does it cost to host a Minecraft server?

Running a server on your own PC is free — you just need a computer and internet connection. Third-party hosting services typically charge $5-15/month. MC Server Manager lets you use your own hardware with a free Lite version or a one-time $1.99 Standard license.

Can I run a server and play on the same PC?

Yes. You'll need enough RAM for both — Minecraft the game uses about 2-4 GB, and the server needs 2-4 GB on top of that. A PC with 8 GB of RAM can handle a small server alongside the game. 16 GB or more is recommended for comfortable performance.

How many players can my server handle?

This depends on your hardware and server type. A typical home PC can handle 5-10 players on Vanilla, or more with Paper's optimizations. Modded servers with large modpacks may struggle above 5-8 players. Monitor your TPS to find your server's limits.

Do I need to keep my PC on 24/7?

Your server is only available while your PC is running. If you want 24/7 uptime, you'll need to keep the computer on, or use a dedicated hosting service. Many people just run their server when they're playing.

Is it safe to host a server from home?

Generally yes, but be aware that port forwarding exposes your public IP. Use a whitelist to control who can join, keep your server software updated, and consider using Cloudflare Tunnel (built into MC Server Manager) to keep your IP private.

My server is lagging — what do I do?

  • Check TPS — if below 20, your server is struggling
  • Allocate more RAM (but no more than half your total system RAM)
  • Switch to Paper if using Vanilla
  • Reduce view-distance in server.properties
  • Remove poorly optimized mods or plugins
  • Pre-generate your world to avoid chunk generation lag