minecraft logo

How to Setup Minecraft Server

Get your Minecraft server up and running with ease!

How to make a Minecraft server on Windows, Mac, or Linux

Minecraft: Beyond the Game

Minecraft isn’t just a game—it’s a global phenomenon. With over 300 million copies sold, it’s the second most popular game worldwide. But Minecraft is much more than that:

Educational ToolHelps kids learn coding.
Modding PlatformOffers endless possibilities for customization.
Creative CommunityConnects creators from all around the world.

Want to take your Minecraft experience to the next level? Setting up your Minecraft server can give you a private space to explore and build. This guide will show you how to set up a Minecraft server on Windows, Mac, and Linux. Let’s get started and make your Minecraft world!

Setting Up a MinecraftServer

Creating a Minecraft server on Windows involves just a few key steps:
1

Download the Server Software

2

Install and Set Up

3

Configure Your Server

4

Launch and Test

5

Adjust Settings as Needed

What You Need to Know Before Setting Up Your Minecraft Server

Setting up a Minecraft server requires a bit of technical knowledge. Here’s what you should be familiar with before you begin:

Command LineBasic skills for navigating and executing commands.
Networking BasicsUnderstanding IP addresses, DHCP, and ports.
System ConfigurationKnowing how your computer is set up.
Network ConfigurationFamiliarity with how your network operates.
Router SettingsFor home setups, knowing how to configure your router.

Make sure you’re comfortable with these concepts to ensure a smooth server setup process.

Hosting a Minecraft Server from Home

You don’t need an ultra-powerful computer to host a Minecraft server. A regular desktop PC will do just fine.

Minecraft: Beyond the Game
Separate SystemsAlthough you can run the server and play on the same computer, having a more powerful machine will provide a better experience.
Wired ConnectionUse a wired Ethernet connection rather than Wi-Fi. It’s more stable and reliable for running your server.

These simple steps will help you set up and manage your Minecraft server effectively.

Prefer Not to Host Your Server at Home?

Hosting a Minecraft server from home exposes your network to the outside world. If you'd rather avoid this, consider using a hosting provider.

Here’s how it works:
Hosting ProvidersServerMOhandle server management and hardware, so you don’t have to worry about the technical details.
CostsYou’ll pay a monthly or annual fee, but gain the benefit of professional management and security.
Dedicated ServersFor increased performance and the capacity to support a large number of players, consider a dedicated server from ServerMO for a powerful and reliable solution.

These simple steps will help you set up and manage your Minecraft server effectively.

Create a Minecraft Server on Your Windows PC

Update Java:

Open the Windows Control Panel.

Go to Programs and find Java. Click on "Update Now."

Open a command prompt and type `java -version`to check your current version.

Download the Latest Java Version:

Visit the Java website to check for the most recent version.

If your version is outdated or if Java is not installed, download and install the latest version from the official Java website.

Select a Folder for Your Server Files

Before downloading the Minecraft server software, choose a location on your PC to store your server files. Create a dedicated folder for these files, as the server will generate several configuration files when you first run it. You can place this folder on your Desktop, in Documents, or any other location you prefer—it's entirely up to you.

Download and Start the Minecraft Server Software

Download the SoftwareVisit the Minecraft website to download the server software, which is a Java .jar file. Save this file in the folder you set up earlier.
Launch the ServerDouble-click the .jar file to start the server. This will create several configuration files.
Accept the EULAOpen the `eula.txt`file in a text editor and change `eula=false`to `eua=true`to agree to the EULA. Without this step, the server won’t start.
TroubleshootingIf you see a “Can’t save server properties”error, right-click the .jar file and select “Run as administrator”to fix the issue.

Port Forwarding: Making Your Minecraft Server Accessible

To let people from outside your local network join your Minecraft server, you’ll need to enable port forwarding on your router. This allows others to connect to your server online but comes with some security risks. First, consult your router’s manual for details on setting up port forwarding. For Minecraft, forward TCP port 25565. You’ll also need to enter your server’s local IP address to direct traffic properly. To find this IP, open the command prompt on your computer and type `ipconfig`.

Starting Your Minecraft Server

To get your Minecraft server up and running, follow these steps:
  1. Open the Windows Command Prompt.
  2. Navigate to the folder where your Minecraft server file (like "minecraft_server.1.12.2.jar") is located.
  3. Start the server by entering the following command:
  4. java -Xmx1024M -Xms1024M -jar <server_file_name>.jar nogui

    (Replace <server_file_name> with the actual name of your server file.)

    If you prefer to use the server’s interface, omit the “nogui” part:
    java -Xmx1024M -Xms1024M -jar <server_file_name<.jar

    You can also create a .bat file to automate these commands.

  5. Once the server is up, players on your local network can connect using your local IP address, while others can connect using your external/public IP address.

Connecting to Your Server

To join your Minecraft server, follow these steps:
  1. Open Minecraft and go to the “Multiplayer” menu.
  2. Click “Add Server.”
  3. Enter a name for your server.
  4. Input your server address. This is your public IP address followed by :25565. To find your public IP, search “my IP address” on Google. If using an IPv6 address, put it in square brackets `[ ]`.
  5. Click “Done.”

Minecraft will now connect to your server, and you can click “Join Server” to start playing. If you have issues, check your server’s status with a Minecraft Server Status Checker using your public IP address.

Running a Minecraft Server on Your Mac

Ensure Java is Installed

Recent versions of macOS come with Java pre-installed. However, if you’re using an older version of macOS (OS X), you might need to download Java separately from the Apple website.

Select a Location for Your Server Files

Create a folder to store your Minecraft server files. You can place this folder anywhere you prefer, such as on your desktop or in another location of your choice.

Download and Set Up the Minecraft Server Software

  1. Download the Server Software: Get the Minecraft server .jar file from the Minecraft website and save it to your chosen folder.
  2. Create a Startup Script:
    • Open TextEdit and switch to plain text mode.
    • Enter the following script, replacing minecraft_server.jar with your actual file name:
    • #!/bin/bash cd "$(dirname "$0")" exec java -Xms1G -Xmx1G -jar minecraft_server.jar nogui
    • Save this file as start.command in the same folder as the server .jar file.
  3. Make the Script Executable:
    • Open Terminal.
    • Type `chmod a+x`followed by a space.
    • Drag and drop the `start.command` file into the Terminal window and press Enter.

Set Up Port Forwarding on Your Router

Determine Need for Port Forwarding If you only want local players to connect, you can skip this step. To allow players from outside your network, you’ll need to enable port forwarding.
Find InstructionsCheck your router’s documentation for how to set up port forwarding or visit PortForward.com for guides.
Configure Port Forwarding:
  • Log in to your router’s admin interface.
  • Forward TCP port 25565 to your server’s local IP address.
  • To find your server’s IP, open Terminal and type `ifconfig`.
Security NoteBe aware that opening ports can expose your network to risks, so proceed with caution.

Start the Minecraft Server

To get your Minecraft server up and running, double-click the `start. command`file you created. This action will open a Terminal window where you might see some initial error messages—don't worry, that's normal. Once the server is active, you can invite others to join by sharing your IP address. Local players can connect using your local IP address, while players outside your network will need your public IP address. To connect, players should navigate to "Multiplayer" in Minecraft, click "Add Server," enter a server name and IP address (with port 25565), and then click "Done" to join your server.

Set Up a Minecraft Server on a Linux Host

If you prefer not to host a Minecraft server from home, using a Linux hosting plan is a great alternative. This way, you avoid the hassle of managing hardware and keep your home network private. For lighter use or testing, a Linux VPS from ServerMO is an excellent option. However, if you anticipate high traffic or a large number of players, you might want to opt for a dedicated Linux server from ServerMO. To get started, you’ll need to connect to your Linux host via SSH.

Install Java on Your Linux Server

Once you’re logged into your Linux server as the root user via SSH, follow these steps to install Java:

List Available Java Packages:
apt-cache search openjdk
This command will display available OpenJDK packages. For this example, we'll use `openjdk-7-jdk`, the OpenJDK 7 Development Kit.
Update Package List:
apt-get update
Install Java:
apt-get install openjdk-7-jdk
Confirm the installation by pressing “Y”when prompted.
Verify Installation:
java -version
This command will show the installed Java version.

Create a Directory for Minecraft Server Files

This will create and navigate to a directory named `minecraft`, where you can store your server files.

Create the Directory:
mkdir minecraft
Change to the Directory:
cd minecraft

Install and Use Screen:

To set up your Minecraft server on a Linux host, first download the server files to your designated directory using `wget`. Use the following command to get the server software:

wget -O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.12.2/minecraft_server.1.12.2.jar

For the latest version, check the official Minecraft download page. Next, install screen to ensure your server runs smoothly in the background even when you're not connected. Install screen with:

yum install screen

After installing, start a new `screen`session by typing screen and press Enter. This setup allows you to manage the Minecraft server without needing to stay connected to your SSH session.

Launching and Configuring Your Minecraft Server on Linux

To start your Minecraft server on Linux, run the following command in your terminal:
java -Xmx512M -Xms512M -jar minecraft_server.jar nogui

You can adjust the memory allocation by changing `-Xmx`and `-Xmx`parameters. For example, use -Xmx1G -Xms1Gto allocate 1GB of RAM. Ensure the settings fit your hosting plan's resources. Once the server starts, stop it by typing `stop`. Edit the `server.properties`file to include `enable-query=true`, save the file, and restart your server. Finally, use a Minecraft Server Status Checker to verify that your server is publicly accessible.

Connect a Domain to Your Minecraft Server

Make it easier for players to join your Minecraft server by using a domain name instead of an IP address. To do this, update your domain’s DNS settings with an “A” record that points to your server’s IP address. You can set this up for the main domain or a subdomain like "mc." Remember, DNS changes may take up to 24 hours to be updated everywhere.

Ready to Launch with Unmatched Power?

Ready to Launch with Unmatched Power? Deploy blazing-fast 1–100Gbps unmetered servers, high-performance GPU rigs, or game-optimized hosting custom-built for speed, reliability, and scale. Whether it’s colocation, compute-intensive tasks, or latency-critical applications, ServerMO delivers. Order now and get online in minutes, fully secured, fully optimized.

Red and white text reads '24x7' above bold purple 'SERVICES' on a white background, all set against a black backdrop. Energetic and modern feel.

Power. Performance. Precision.

99.99% Uptime Guarantee
24/7 Expert Support
Blazing-Fast NVMe SSD

Christmas Mega Sale!

Unwrap the ultimate power! Get massive holiday discounts on all Dedicated Servers. Offer ends soon grab yours before the snow melts!

London UK (15% OFF)
Tokyo Japan (10% OFF)
00Days
00Hrs
00Min
00Sec
Explore Grand Offers