PDF download Download Article PDF download Download Article

Running a Minecraft server for all of your friends is a great way to keep everyone gaming together. You can set all kinds of custom rules for your friends, from more combat to construction only, and everything in between. Servers work best when connected to the internet for long periods of time. Servers also work best when there are no other programs running on the computer, so try to set it up on a dedicated machine. Follow this guide to learn how to set one up.

Method 1
Method 1 of 7:

Obtaining Server Files

PDF download Download Article
  1. You can download the Minecraft server program for free from the Minecraft website . You can run a Minecraft server without purchasing the game, but you will be unable to play on it.
    • For Windows, click on the "Minecraft_Server.exe" link under the "Multiplayer server" heading.
    • For Mac OS X or Linux, download minecraft_server.jar.
  2. The Minecraft server runs directly from the program that you download from the website, and will install itself in whatever folder it is opened in. Create a folder with a name like Minecraft Server, and download the server file into it.
  3. Advertisement
Method 2
Method 2 of 7:

Running a Server in Windows

PDF download Download Article
  1. Install the latest version of Java . First, verify your Java version. In Windows XP/Vista/7/8, press the Windows key and the R key to open the Run command. Enter “cmd” into the box to open the command prompt. Type “java –version” and press enter. Your Java version needs to be 1.7.
    • To download the latest version of Java, visit the Java download page .
  2. Open the folder contains the Minecraft_server.exe file. Double-click the .exe file and a window will open that shows the progress of the server's construction. The process is automatic. Server configuration files will be automatically created and added to the folder.
    • At this point, your Minecraft server can be accessed on the local network, and online if you are not using a router. If you are using a router and want to make it accessible online, follow the steps in the Port Forwarding section below.
    • If the server fails to load and you get a screen of garbled text, you will need to run the server as an administrator. Right-click on the program and select “Run as administrator.” You will need the administrator password.
  3. Advertisement
Method 3
Method 3 of 7:

Running a Server in Mac OS X

PDF download Download Article
  1. Open the folder containing the minecraft_server.jar file. Create a new text file with TextEdit. Set the format to “Make Plain Text”. Copy the following lines into the file:

    #!/bin/bash
    cd "$(dirname "$0")"
    exec java -Xmx1G -Xms1G -jar minecraft_server.jar
    • If you wish to assign more RAM to the server, change 1G to 2G or higher, depending on your system.
  2. Save the file as “start.command”. Open the Terminal in the Utilities folder. You will need to grant execute permissions to the start.command file that you just created. Type “chmod A+x” into the Terminal, then drag and drop the start.command file into the Terminal window. This will provide the correct path to the file. Press Enter to save the changes to the file.
  3. Opening start.command will now start the Minecraft server.
  4. Advertisement
Method 4
Method 4 of 7:

Connecting to Your Server

PDF download Download Article
  1. Once the server has run for the first time, exit out. Open the ops.txt file in the Minecraft Server directory. Add your username to this file to give yourself administrator privileges. This will let you kick and ban players from in the game, as well as adjust other settings.
  2. Add your friends’ Minecraft usernames to the white-list.txt file in the Minecraft Server directory. Only the usernames listed in this text file will be able to connect to your server. This will keep random people from griefing your game.
  3. Type “my ip address” into Google and your external (public) IP address will be displayed as the first result. Have your users type in your external IP address on the Minecraft multiplayer menu.
    • If your internet service provider assigns you a dynamic IP address, check the Dynamic DNS section below for a guide to setting up a Dynamic DNS that will stay constant even if your IP address changes.
  4. Give your server’s IP or host name to your friends. They will need to enter the IP address or host name of your server in the Multiplayer menu of Minecraft.
    • Players connecting on a local network need to enter the local IP; those connecting from the internet need to enter your external IP or host name.
  5. Advertisement
Method 5
Method 5 of 7:

Modifying Your Server

PDF download Download Article
  1. There are thousands of user-made plugins and modifications available to download for free that will change your Minecraft experience. These range from world-building enhancements, to complete economy overhauls and all new game modes. Use plugins to add variety to your server and to keep your friends on their toes.
    • Bukkit is the most popular way to add plugins to your server. You will need to download the CraftBukkit tool. Running CraftBukkit is a complete replacement for the Minecraft Server program; you will be running the CraftBukkit server instead of Minecraft.
  2. This server program will allow you to add custom plugins that are not supported by the standard Minecraft server software.
  3. There are a variety of plugin repositories available online. Find a plugin that sounds interesting to you and download it. Be sure that you are downloading from a trusted source.
  4. Unzip the file that you downloaded. The .zip file should contain .jar files that contain the plugin data. Copy every .jar file in the .;zip file into the PLUGINS directory in your server folder.
    • Restart the server to install the plugins. You may have to adjust your server settings files again after installing a new plugin.
    • Make sure that your whitelist is configured to only allow your friends to connect.
  5. Advertisement
Method 6
Method 6 of 7:

Setting Up Port Forwarding

PDF download Download Article
  1. Every router has a different method for accessing the settings. Most routers are accessible from a web browser by entering the IP address, typically 192.168.1.1 or 192.168.2.1.
    • If you cannot access your router with either of those IPs, visit PortFoward.org and enter your router’s information. The default guides will list the standard addresses used by your router.
    • Most routers require a username and password to access the configuration menu. This would be the username and password you set up when you installed the router on your computer.
    • Typically, the default username is “admin” and the default password is “password” or “admin”.
  2. This is typically listed under Advanced Options. It may go by another name, such as Virtual Servers, depending on the manufacturer.
  3. The Minecraft server port is 25565 by default. If your router wants a range of ports, enter 25565 into both the "Start Port" and "End Port."
    • Set "Protocol" to "TCP."
  4. Make sure the IP address matches your server’s IPv4 address. Check this in Windows by opening the command prompt in Windows and running “ipconfig”. Your IP address will be listed next to “IPv4 Address.” You may have to scroll up to see it. If using a Mac, click the Apple menu and select System Preferences, and then Network. Your IP address will be listed in the lower-right part of the window.
  5. Review your settings to make sure everything is entered correctly.
  6. Advertisement
Method 7
Method 7 of 7:

Setting Up a Dynamic DNS

PDF download Download Article
  1. Most residential internet providers assign dynamic IPs. This makes connecting to your server somewhat more difficult, as you have to let people know your new address every time it changes. Some ISPs will give you a dynamic IP, but it won’t change for long periods of time.
    • Type “my ip address” into Google and note your IP address over a few weeks. If you’re only giving out the IP to a few friends, then you may not have to worry about setting up a static address if your IP doesn’t change very often.
  2. A Dynamic DNS will assign a domain name to your dynamic IP. This will give you an unchanging address to connect to. Many services offer free accounts for single addresses.
    • Dynamic DNS will require a program to run on your computer, that will update your domain whenever your IP address changes.
  3. You will need to set your router to connect through a Dynamic DNS. The location of this setting varies from router to router, but it is typically under the Advanced settings.
    • You will need to enter your Host name, username, and password.
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I find the ops.txt file?
    Community Answer
    Once you open the program, and agree to the eula, the ops text file will be in the same spot as the server application.
  • Question
    Can someone playing minecraft on laptop play with someone on iPad?
    Community Answer
    No. Minecraft is not a cross-platform game.
Ask a Question
      Advertisement

      Video

      Tips

      • Your server folder doesn't have to be on the desktop, but you should try to put it somewhere accessible, in case you need to change the settings.
      • Add a password to your server so only those who you want can join it.
      • If you type "help" into the white server box then a list of server commands will appear.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Make sure your "minecraft_server.jar" file is called that and doesn't have a "(1)" or that it hasn't been renamed to something else otherwise this won't work
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 355,296 times.

      Did this article help you?

      Advertisement