Host a Minecraft Server

Winner of seven game awards, the video game Minecraft was developed by Markus Persson in 2009 and released as a full PC game in 2011. Now also available for the Macintosh, Xbox 360, and Playstation 3, Minecraft is an open world game that can be played either as a solo or as a multiplayer game. To play the game as a multiplayer game, however, requires either renting or hosting a server. Hosting a server requires downloading a file and installing it on the server computer, then connecting to the server. The following steps cover how to host a Minecraft server for Windows

Steps

  1. Consider your computer's capabilities. If you plan to use your computer as a server for Minecraft, you'll need to have a fast CPU and sufficient RAM to handle the number of people you anticipate logging on to your server to play. This is especially true if you plan to use the computer to play the game yourself as well as function as a server for others.
  2. Check your Internet connection speed. You'll need a fast upload and download speed to allow players to interact with one another in real time.
  3. Be sure to have the most current version of Java on your system. The software that enables you to use your computer as a Minecraft server requires Java to run. The most current version, as of when this article was originally written, is Java 7.
    • Windows computers do not usually come with Java pre-installed. You can install a current version of Java from http://www.java.com/en/download/manual.jsp. Java is available in 32-bit and 64-bit versions. You can run 32-bit Java on a 64-bit computer, particularly if you're using an older browser that only supports 32-bit Java, but you can't run 64-bit Java on a PC with 32-bit architecture.
    • Macintosh computers, in contrast, usually come with Java pre-installed and update it automatically. If your Mac doesn't have a current version of Java installed, you can get it from the same source as the Windows version.

Setting Up a Host Server

  1. Create a folder for the server application program. This is primarily a housekeeping chore to make sure you know where the application was installed if you need to access it directly. Give the folder a meaningful name such as "MinecraftServer."
    • You may want to place the folder in the root directory of your hard drive, which for most computers is "C:\" or in your Desktop folder.
  2. Download the right Minecraft server application program for your system. Which file format you download depends on whether your computer runs Windows or MacOS.
    • For a Windows system, download Minecraft_Server.exe and save it to the folder you created in the previous step. This file is available from Minecraft.net.
    • For a Macintosh, download minecraft_server.jar and save it to the folder you created in the previous step. This file is also available from the Minecraft website.
  3. Ready the application program for use.
    • For the Windows executable, double-click the file to run it. You'll see an interface window and a series of messages.
    • For the Macintosh .jar file, create a command file by opening TextEdit and choosing Make Plain Text from the Format menu. Copy the instruction "#!/bin/bash cd "$(dirname "$0")" exec java -Xmx1G -Xms1G -jar minecraft_server.jar" (without the quotes). Save the file in the same folder as the .jar file, using the .command extension and a descriptive name such as "start" or "startserver." Then, open Terminal and type "chmod a+x ," (including the space, but not the quotes), and drag the .command file into the terminal window and press the Enter key. You then double-click the .command file, which in turn runs the .jar file.
    • At this point, with either the executable or the jar file, you may see some "missing file" warnings. These are for files that don't yet exist but will be created when the program runs for the first time. Once you see the word "Done" after the last "Preparing spawn area" message, enter "stop" in the text field. Press Enter.
  4. Customize settings for the way you want to play Minecraft. You do this by accessing the Server.Properties file, using either Notepad in Windows or TextEdit in MacOS. Once you have configured the settings the way you wish, save your changes.
    • Leave the game mode setting at "0" if you want to play Minecraft in survival mode, where players have to gather food and other resources while risking injury from enemies. To play in creative mode, where players take no damage and can place and destroy blocks instantly, set the game mode to "1."
    • To adjust how severe the survival mode setting is, change the value of the difficulty setting. A value of "0" is Peaceful, where there are no enemy mobs; a value of "1" is Easy, where the mobs exist as a minor threat; a value of "2" makes the mobs a moderate threat; while a value of "3" is Hard, where the mobs are a major threat.
    • You can learn about the other settings and what they control from the Minecraft wiki.
  5. Determine who can access the game. You need to enable your fellow players to have access to the server in order to play Minecraft, but you need to prevent other people from invading the game.
    • First, enable the white list in the Server.Properties file by changing the White-List setting value to "True." Then, edit the White-List file, adding your username and the username of each player you want to allow access to your server. Press Enter after each username.
  6. Determine who has administrator privileges. Administrators, or moderators, can issue commands from chat mode while the game is running to add or block players or otherwise change the game. You assign administrator privileges by entering usernames into the Ops or Admin (for older versions of Minecraft) list the same way as for the white list. You'll want to enter your own username to the Ops list, along with the username of someone you trust to assist you.
  7. Configure your router to make the server visible to players outside your immediate network. You'll have to set up the router to forward port 25565 (TCP) to the Minecraft server. The exact instructions vary according to the brand and model of your router; a list of routers with instructions for port forwarding can be found at http://portforward.com/english/routers/port_forwarding/.
  8. Find your public IP address. You'll need to provide this address for anyone outside your immediate network to connect to your Minecraft server. You can find your public IP address by doing an Internet search with an argument such as "what is my IP."
    • The last two steps are necessary only if you play Minecraft with players who are in a different physical location than you and your server are. For a LAN party or game room at a science fiction convention, where all the players will be in the same room, you won't need to know your public IP or port forward your router.



Tips

  • If you are looking to use mods, you will need to install the Minecraft Forge server files. Everyone that connects to the server will need to use Forge with the same mods that are on the server itself.
  • If you plan to accommodate a large number of players, or if you plan to set up a Minecraft server at a science fiction convention's game room, you may want to rent a server instead of configuring it yourself. You can do an Internet search to find suitable hosts or look for them on the hosting section of forums devoted to Minecraft.
  • Use a desktop computer as your Minecraft server if you don't have access to a dedicated server. While high-end laptops are good for playing the game, they usually don't have the same caliber of hardware as desktops or dedicated servers.
  • You can also use the .jar version of the Minecraft server application program on Windows, but to do so, you must create a batch file in the same folder as you save the .jar file to. You can create the batch file in Notepad, pasting in this line (without the quotes):" java -Xms512M -Xmx1G -jar minecraft_server.jar". Save the batch file with a .bat extension and a descriptive name such as "startserver." (This batch file is equivalent to the .command file on a Mac.)
  • To change how much RAM Minecraft has available on startup, change the "1G" (for 1 gigabyte) in the batch or .command file to a larger number, such as "2G."
  • If you are interested in starting a server with plugins, you will need to use either Bukkit or Spigot. This is easier for public servers as plugins are only required on the server, and players can use the normal Minecraft game client to connect.
  • If you have only a small number of players, you may wish to set up a virtual private network (VPN) instead of using the methods described above for setting up a server. A VPN requires all players who wish to connect to the server to install software on their computers.

Related Articles

Sources and Citations