ANNOUNCEMENT The Results Are In! Discover the Winners of the HostingSeekers Web Hosting Awards 2026. View Winners

NEW Now accepting Web Development, WordPress, and Cloud service providers. List Your Company Today

Home  »  Blog   »   Game   »   How to Set Up Your Own Minecraft Gaming Server – Step-by-Step Guide
How to Set Up Your Own Minecraft Gaming Server - Step-by-Step Guide

How to Set Up Your Own Minecraft Gaming Server – Step-by-Step Guide

Game Updated on : July 13, 2026

Minecraft is more enjoyable when you can create and customize your own world and invite friends, rather than using public servers. Hosting your own server allows for personalized game modes, mod installations, and player management. Setting up a server is straightforward using the official Minecraft server software on Windows, Linux, or macOS.

This guide provides step-by-step instructions to configure settings, allocate memory, enable multiplayer, enhance performance, and troubleshoot issues, ensuring a stable server for players.


How to Set Up Your Own Minecraft Gaming Server?

To set up a Minecraft server, download and install Java, download the official server.jar file from minecraft.net, run it once to generate server files, accept the EULA, then start the server again. Forward port 25565 on your router so friends can connect over the internet or use a hosting provider to skip local setup entirely.


Why Host Your Own Minecraft Server?

Running your own Minecraft server hands you full control over the world your community plays in. Instead of relying on someone else’s rules, you decide the game mode, the difficulty, which mods or plugins are installed, and who gets to join. That control is the main reason players move from single-player or public servers to hosting their own.

  • Full control: Set your own rules, whitelist, difficulty, and world settings from day one.
  • Community building: Give friends, guild members, or a growing player base a persistent, shared world.
  • Customization: Install plugins (Bukkit/Spigot/Paper) or mods (Forge/Fabric/NeoForge) that vanilla servers don’t support.
  • Monetization potential: Larger community servers can accept donations or sell cosmetic perks, provided this follows Mojang’s Minecraft Commercial Usage Guidelines.

What You’ll Need Before Starting?

Check Hardware and Internet Requirements

Before installing anything, confirm your computer can comfortably run a server in the background. These are baseline figures for a small server supporting one to five players; larger communities or modded servers need considerably more RAM and CPU headroom.

Component Minimum Recommended for 5–10 Players
RAM 2 GB free (Windows 10/11) or 512 MB (Linux/macOS) 4–8 GB dedicated to the server
CPU Dual-core, 2.0 GHz+ Quad-core, 3.0 GHz+ (single-thread speed matters most)
Storage 2–10 GB free (SSD strongly preferred) 20 GB+ SSD for world growth and backups
Internet 3 Mbps download / 6 Mbps upload (wired) 25 Mbps+ upload for 10+ concurrent players
Operating System Windows 10/11, macOS, or Linux Linux server distribution for 24/7 uptime and lower overhead

wired Ethernet connection is strongly recommended over Wi-Fi, as it delivers steadier latency, which directly affects how smooth the game feels for connected players. Keep in mind these numbers cover the server process only; if you also plan to play Minecraft on the same machine, you need additional RAM and CPU on top of what the server consumes.

How to Set Up Your Own Minecraft Gaming Server? Step-by-Step Guide

Step 1: Install Java

Minecraft: Java Edition servers require specific Java versions based on the Minecraft release. Installing the latest Java may not work, as using the incorrect major version is a common cause for server startup failures. Always verify your target version with the provided table first.

Minecraft Version Required Java Version
1.20.5 through 1.21.11 (current) Java 21 or newer
1.18 through 1.20.4 Java 17 or newer
1.12 through 1.17.1 Java 8 or Java 16 (version-dependent)
26.1 and later snapshots Java 25 or newer

Check if Java is already installed

Open Command Prompt (Windows) or Terminal (Linux/macOS):

java -version


Copied!

If Java is installed correctly, you’ll see the installed version.

If the command isn’t recognized or the version is outdated, install the latest supported Java release before proceeding.

Step 2: Download the Official Minecraft Server

Always download the server software from Minecraft’s official server download page (minecraft.net/en-us/download/server). Avoid downloading server files from third-party websites, as unofficial builds may be outdated or modified. Minecraft provides separate downloads for Java Edition and Bedrock Edition dedicated servers.

Step 3: Create a Dedicated Server Folder

  • Create a new folder anywhere on your computer, for example: “Minecraft Server”
  • Move the downloaded server .jar file into this folder.
  • Keeping all generated files in one directory makes future backups and maintenance much easier.

Step 4: Launch the Server for the First Time

Open Command Prompt. Navigate to your server folder.

Example:

cd C:\Users\YourName\Desktop\Minecraft Server


Copied!

Now run:

java -jar server.jar –nogui


Copied!

Replace the filename with your downloaded server filename if necessary. The server will start briefly and automatically generate several files before shutting down. This behaviour is completely normal.

Step 5: Accept the Minecraft EULA

After the first launch, you’ll notice a file named:

eula.txt

Open it using any text editor. You’ll find:

eula=false


Copied!

Change it to:

eula=true


Copied!

Save the file.

This step indicates that you agree to Minecraft’s End User License Agreement before running a server.

Step 6: Configure Server Settings

The first launch also generates server.properties, the file that controls nearly every server-side setting. Edit it with any plain text editor, then restart the server for changes to take effect. These are the settings most new server owners adjust first:

Property Default What It Controls
gamemode survival Default mode for new players: survival, creative, adventure, or spectator.
difficulty easy Mob damage and hunger effects: peaceful, easy, normal, or hard.
max-players 20 Maximum number of players who can be connected simultaneously.
online-mode true Verifies players against Mojang’s account database; keep this true unless you fully understand the risk of disabling it.
pvp true Enables or disables player-versus-player combat.
white-list false Restricts joining to players listed in whitelist.json when enabled.
motd A Minecraft Server The message shown in the server list below your server’s name.
server-port 25565 The TCP port the server listens on — this is the port you forward on your router.
view-distance 10 How many chunks the server sends to each client; lowering this reduces lag on weaker hardware.
spawn-protection 16 Radius (in blocks) around spawn that only operators can build or break in.

Default values shown reflect Mojang’s current server.properties defaults; the Minecraft Wiki maintains the full, up-to-date list of every available key.

Step 7: Allocate More RAM

By default, Java uses relatively little memory. For smoother gameplay, especially with multiple players, allocate more RAM.

Example:

java -Xms2G -Xmx4G -jar server.jar –nogui


Copied!

Explanation:

  • Xms = Minimum RAM
  • Xmx = Maximum RAM

Do not allocate all available system memory, as your operating system also requires RAM to function properly.

Step 8: Create a Startup Script

Instead of typing commands every time, create a startup script.

Windows

Create a new text file in your server folder named start.bat.

Add the following lines:

java -Xms2G -Xmx4G -jar server.jar –nogui


Copied!

pause

Double-click the batch file whenever you want to start the server.

Linux/macOS

Create a new text file in your server folder named start.sh.

Add the following contents:

#!/bin/bash
java -Xms2G -Xmx4G -jar server.jar –nogui


Copied!

Make it executable:

chmod +x start.sh


Copied!

Run:

./start.sh


Copied!

Step 9: Allow Minecraft Through Your Firewall

Your operating system’s firewall may block incoming connections to your Minecraft server. To allow other players to join, you need to create a firewall rule that permits traffic on Minecraft’s default server port.

Windows Firewall

  • Open Windows Defender Firewall with Advanced Security.
  • Select Inbound Rules.
  • Click New Rule.
  • Choose Port.
  • Select TCP.
  • Enter: 25565
  • Allow the connection.
  • Apply the rule to the required network profiles.
  • Give the rule a descriptive name such as Minecraft Server.

If you’re hosting a Bedrock Edition server, use the default Bedrock port instead.

Tip: If you’re only playing over your local network (LAN), firewall configuration may not be necessary depending on your network setup.

Step 10: Configure Port Forwarding

If you want friends outside your home network to connect, you’ll need to forward the Minecraft server port on your router. Port forwarding directs internet traffic from your public IP address to the computer running your Minecraft server. The process varies depending on your router manufacturer, but the required information is generally the same.

Setting Value
Protocol TCP (or TCP/UDP if supported)
External Port 25565
Internal Port 25565
Device Your server computer
Internal IP Local IP address of your server

Find Your Local IP Address

On Windows:

ipconfig


Copied!

Look for the IPv4 Address, for example:

192.168.1.120


Copied!

This is the address you’ll use when configuring port forwarding.

Best Practice: Assign your server computer a static IP address so the forwarding rule doesn’t break after your router restarts.

Find Your Public IP Address

Players outside your network will connect using your public IP address. Search “What’s my IP” in your browser or check your router’s status page. Your friends will join using:

YourPublicIPAddress:25565


Copied!

Example:

203.xxx.xxx.xxx:25565


Copied!

If your internet service provider changes your public IP regularly (dynamic IP), consider using a Dynamic DNS (DDNS) service so players can connect using a hostname instead of a changing IP address.

Start Your Minecraft Server

Once everything is configured, launch your startup script. During startup, you’ll see the server loading:

  • World generation
  • Spawn area preparation
  • Game rules
  • Network initialization

When you see: Done, your Minecraft server is ready. Leave the command window open while the server is running. Closing it will stop the server.

Join Your Server

Open Minecraft Java Edition.

  • Select Multiplayer.
  • Click Add Server.
  • Enter a server name.
  • Enter the IP address.

If You’re Playing on the Same Computer

Use:

localhost


Copied!

or

127.0.0.1


Copied!

If You’re on the Same Home Network

Use the server computer’s local IP address. Example:

192.168.1.120


Copied!

If You’re Connecting from Outside

Use your public IP address.

How to Invite Friends?

Share your public IP address with trusted players. If you want additional security, enable the whitelist feature. Inside the server console:

whitelist on


Copied!

Add players:

whitelist add PlayerName


Copied!

Only approved players will be able to join. This is one of the easiest ways to protect private servers from unwanted visitors.


Understanding Important Server Files

After the server starts successfully, several new files and folders are created automatically.

File Purpose
world Stores your Minecraft world.
logs Server activity logs.
eula.txt Records acceptance of the Minecraft End User License Agreement (EULA).
server.properties Contains the server’s configuration settings.
ops.json Lists server operators (admins) with elevated permissions.
whitelist.json Contains the list of approved players allowed to join when the whitelist is enabled.
banned-players.json Stores information about banned player accounts.
banned-ips.json Stores blocked IP addresses that cannot connect to the server.

These files should be backed up regularly, especially the world folder.

How to Install Plugins?

Plugins allow you to add features without modifying the core Minecraft game. Popular server software that supports plugins includes:

  • Paper
  • Spigot
  • Bukkit

Examples of plugins include:

  • Economy systems
  • Anti-cheat protection
  • Land claiming
  • Teleportation
  • Permissions management
  • Minigames

Most plugins are installed by placing their .jar files inside the plugins folder and restarting the server.

How to Install Mods?

Mods are different from plugins. They add new gameplay mechanics, blocks, mobs, dimensions, and items. To use mods, you’ll typically install a mod loader such as:

  • Forge
  • Fabric
  • NeoForge

After installing the mod loader:

  • Create the mods folder.
  • Copy compatible mod files into it.
  • Restart the server.

Remember that every player must also install the same mods on their own Minecraft client.

Improve Minecraft Server Performance

Even a small server can experience lag if it’s not configured properly. Here are some practical ways to improve performance.

  • Allocate Enough RAM: Avoid allocating too little memory. However, allocating excessive RAM can also reduce Java’s garbage collection efficiency. For small servers, 2–4 GB is usually sufficient.
  • Reduce View Distance: Lowering the render distance significantly decreases CPU usage. Example: view-distance=8 instead of view-distance=16
  • Use an SSD: Solid-state drives dramatically improve World loading, Chunk generation, and save times.
  • Limit Unnecessary Entities: Large farms containing thousands of animals or villagers can slow any server. Regularly remove unused entities.
  • Keep Software Updated: Update Minecraft server, Java, Plugins, and Mods frequently to improve security patches and performance improvements.

Security Best Practices

  • Running a public Minecraft server means protecting both your game world and your computer.
  • Enable the Whitelist: Only approved players can connect. This prevents random users from joining.
  • Use Strong Operator Permissions: Avoid giving operator (OP) privileges to everyone. Only trusted administrators should receive elevated permissions.
  • Back Up Your World: Schedule automatic backups of your – World folder, Configuration files, Plugins, Mods. If something goes wrong, you can restore your server quickly.
  • Don’t Disable Authentication: Leave online-mode=true unless you fully understand the security implications. This ensures Minecraft verifies player accounts.
  • Monitor Server Logs: The logs folder records Player joins, Errors, Warnings, Plugin issues, and Checking logs regularly help identify problems before they become serious.

Self-Hosting vs. Renting a Minecraft Server

Self-hosting is free beyond the electricity bill, but it comes with real trade-offs once a server grows past a handful of friends. Here’s how the two approaches compare directly.

Factor Self-Hosted (Your PC) Rented Hosting Provider
Cost Uses your existing hardware; typically adds around $5–20/month in electricity costs. $5–50+/month depending on RAM, storage, and player slots.
Setup Effort Manual setup including Java installation, server files, and port forwarding. Usually offers one-click deployment with an easy-to-use control panel.
Uptime Available only while your computer and internet connection remain online. 24/7 uptime on professional data center infrastructure.
Player Capacity Best suited for 1–5 players on a typical home internet connection. Comfortably supports 10–100+ players, depending on the hosting plan.
Security You are responsible for firewall rules, updates, and network security. Includes built-in DDoS protection and managed security features.
Customization Complete control over server files, settings, plugins, and mods. High level of customization within the hosting provider’s supported policies.
Best For Small private groups and users comfortable managing their own server. Public or growing communities that need reliability, scalability, and minimal maintenance.

If you’re testing the idea or only play with a couple of friends, self-hosting is a reasonable starting point. Once a server needs to stay online while your PC is off, check our comparison of affordable Minecraft server hosting providers for plans that remove the uptime and bandwidth ceiling self-hosting runs into.

If you want to try renting a server before committing to a paid plan, our roundup of the best free Minecraft server hosting providers covers no-cost options and their limitations.


Troubleshooting Common Setup Errors

Error / Symptom Likely Cause Fix
“Unsupported class file major version” Java version is older than the server requires. Install Java 21+ (or the Java version required by your Minecraft release) and verify the installation with java -version.
Server closes immediately after launch The Minecraft EULA has not been accepted. Openeula.txt, change eula=false to eula=true, save the file, and restart the server.
Friends can’t connect from outside your network Port 25565 is not forwarded correctly, or your ISP uses CGNAT. Verify your router’s port forwarding settings and ensure your ISP provides a public IPv4 address. Contact your ISP if you’re behind CGNAT.
“Failed to bind to port” Another application is already using port 25565. Close the conflicting application or change the server-port value in server.properties.
Server lags with several players online Insufficient RAM allocation or a high view-distance setting. Increase the -Xmx memory allocation and reduce the view-distance value in server.properties.
World resets or won’t load The level-name points to a missing or corrupted world folder. Restore the world from a backup or update the level-name setting to generate a new world.

Summing Up

Setting up a Minecraft server is a genuinely approachable weekend project: install Java, download the official server files, accept the EULA, configure a few properties, and forward a port. For a small group of friends, that’s often all you need. As a community grows past what a home connection and a spare PC can reliably support, the setup effort shifts from server files to server uptime, and that’s the point where a managed Minecraft hosting plan typically pays for itself in reliability, player capacity, and time saved on maintenance.


Frequently Asked Questions

Q1. Is it free to host your own Minecraft server?

Ans. Yes. Downloading and running the official server.jar or Bedrock Dedicated Server software from Mojang costs nothing, you only pay for your existing electricity and internet.

Q2. How much RAM does a Minecraft server need?

Ans.  A small vanilla server for one to five players runs comfortably on 2 GB of allocated RAM. Larger player counts, modded servers, or plugin-heavy setups typically need 4 to 8 GB or more.

Q3. Do I need a powerful PC to host a Minecraft server?

Ans. Not for a small group. Minecraft’s server software is more sensitive to single-thread CPU speed and RAM than raw core count, so a modest dual-core system with 2 GB of free RAM can host a handful of players without issue.

Q4. What port does Minecraft use by default?

Ans. Minecraft: Java Edition uses TCP port 25565 by default, set by the server-port value in server. Properties. Bedrock Edition defaults to UDP port 19132.

Q5. Can I run a Minecraft server and play the game on the same computer?

Ans. Yes, but you’ll need enough RAM and CPU headroom for both the server process and the game client running at once, typically an extra 2 to 4 GB of RAM beyond the server’s own allocation.

Q6. Do I need to keep my computer on for others to play?

Ans. Yes, for a self-hosted server. If your PC or internet goes offline, the server goes offline with it. Hosting providers avoid this by running your server on always-on infrastructure.

Q7. Is self-hosting safe from a security standpoint?

Ans. Port forwarding does expose your network to the internet on that port, so keep online-mode enabled, use a whitelist for private servers, and avoid running a public server on a machine holding sensitive personal data.

Q8. What’s the difference between Java Edition and Bedrock Edition servers?

Ans. Java Edition servers run on server.jar and support full mod loaders like Forge and Fabric plus plugin platforms like Paper and Spigot. Bedrock Dedicated Server supports console and mobile players but uses a different server. Properties format and a smaller add-on ecosystem, and the two editions cannot connect to each other’s servers without a proxy tool.

Leave a comment

Your email address will not be published. Required fields are marked *