Make a Personal Minecraft Server

Minecraft is a fun game by yourself, but playing with your friends can make it a truly memorable experience. You can set up a server that will allow you to play and build together, that people can leave or join at will.

Steps

Creating a Quick Local Game

  1. Start a new single-player game in Minecraft.
  2. Once the game has started, press Esc to open the menu.
  3. Click "Open to LAN".
  4. Click the "Mode" button to select the game mode for other players. You can select Creative, Adventure, or Survival.
  5. Click the "Allow Cheats" button to allow other players to use cheats.
  6. Click "Start LAN World".
  7. Note the address. You will see the message Local game hosted on XXX.XXX.XXX.XXX:XXXXX". Copy down the address to give to others.
  8. Start Minecraft on the other computer(s). These computers must be connected to the same network as the first computer.
  9. Click "Multiplayer".
  10. Wait for the network scan to complete.
  11. Select your game and click "Join Server".
  12. Add the server manually if you can't discover it. Click "Add server", and then enter the address that was displayed earlier.

Starting a Dedicated Server

Windows

  1. Visit the Java download site. Go to java.com/en/download/. Download and install the latest version.
  2. Find your Java directory. The location will vary depending on your operating system and if you made changes during installation. The default directories are:
    • 32-bit Windows: C:\Program Files\Java\jre7\bin\
    • 32-bit Java on 64-bit Windows: C:\Program Files (x86)\Java\jre7\bin\
    • 64-bit Java on 64-bit Windows: C:\Program Files\Java\jre7\bin\
  3. Right-click on Computer/My Computer/This PC. You can find this in your Start menu, on the desktop, or by pressing.
    • Select Properties.
    • Click "Advanced system settings".
    • Click Environment Variables....
    • Find and select the "Path" variable in the "System variables" section. Do not select the "PATH" variable in the "User variables" section.
    • Click Edit....
    • Add a ; to the end of the "Variable value"
    • Add your Java directory after the ;. E.g. ;C:\Program Files (x86)\Java\jre7\bin\
  4. Visit the Minecraft website. Go to minecraft.net/download.
  5. Download .Minecraft_Server.exe.
  6. Create a Minecraft server folder. Place this folder somewhere that is easy to access, like the root of the C: drive or on your desktop.
  7. Move the .Minecraft_Server.exe file to the new folder.
  8. Run the EXE file to create the server. Double-click the .exe file and a window will open that shows the progress of the server's construction. The process is automatic, and the program will close immediately after it has finished. Server configuration files will be automatically created and added to the folder.
    • 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.
  9. Open the .eula.txt file.
  10. Find the .eula=false line. Change this to eula=true
  11. Right-click in the server folder and select NewText Document.
  12. Enter the following to create a server batch:
    • -Xms1G -Xmx2G denotes the initial and maximum memory allotment for the server (1 GB and 2 GB, respectively). You can adjust this as you see fit.
  13. Save the file as a ".bat" file.
  14. Run the batch file to start your server.
  15. Find your computer's IP address. You will need this when configuring your ports to allow other people to connect.
    • Press the Windows key + R, type cmd, and press Enter
    • Type ipconfig and press Enter
    • Scroll up until you find your active connection
    • Write down the IPv4 address
    • Write down the "Default Gateway" address as well

Mac OS X

  1. Visit the Minecraft website. Go to minecraft.net/download.
  2. Download .minecraft_server.jar.
  3. Create a Minecraft server folder. Place this folder somewhere that is easy to access, such as your Desktop or Applications folder.
  4. Move the .minecraft_server.jar file to the new folder.
  5. Open your Minecraft server folder.
  6. Create a new text file with TextEdit. Click FormatMake Plain Text. Copy the following lines into the file.
    • If you wish to assign more RAM to the server, change 1G to 2G or higher, depending on your system.
  7. Save the file as "start.command". Make sure it's saved in the Minecraft server folder.
  8. Open the Terminal in the Utilities folder. You will need to grant execute permissions to the start.command file that you just created.
  9. 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.
  10. Press Return to save the changes to the file.
  11. Double-click the command file to start your server. You may receive several error messages the first time you run the server, which is normal.
  12. Open the .eula.txt file.
  13. Find the .eula=false line. Change this to eula=true
  14. Find your computer's IP address. You will need this when configuring your ports to allow other people to connect.
    • Click the Apple menu and select System Preferences.
    • Click Network.
    • Select your active network adapter
    • Write down the IP address displayed
    • Write down the "Router" address as well.

Setting Up Port Forwarding

  1. Enter your router's address into a web browser. You found this address when looking up your computer's IP address. In Windows, this was the "Default Gateway" address, and in OS X, this was the "Router" address in the Network window.
  2. Log in with your administrator account. You will need to enter your username and password to be able to access your router's settings.
    • If you don't know your username and password, you can try the default information, as many people don't change this. You can look up the default login information by searching for your router model online or referring to its documentation.
    • If you cannot figure out the login information, you can manually reset the router by pressing and holding the "Reset" button on the back for at least 30 seconds. You will then be able to log in with the default login information, but all of your settings will be gone.
  3. Open the Port Forwarding section. The location of this section varies from router to router, but it can typically be found in the "Advanced" section.
  4. Add a new service or rule. Again, the actual terminology will vary depending on the type of router you are using.
  5. Name the service "minecraft" or "minecraft_server".
  6. Set the protocol to "TCP".
  7. Set the External Starting Port and External Ending Port to "25565".
    • The internal ports should mimic the external ports.
  8. Set the Internal IP Address to the IP address of your server computer.
  9. Click "Apply" or "Save". Your router may take a minute to apply the changes.

Allowing Others to Connect

  1. Set your operator privileges. Once the server has ran 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. Setup your whitelist. If you want to play with just your friends, add their 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. Obtain your external IP address. Type "my ip address" into Google and your external (public) IP address will be displayed as the first result. This is the IP address that you will be giving to your friends to connect.
  4. Distribute your address. Give your server’s IP or host name to those that you want play on your server. 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 of your server computer; those connecting from the internet need to enter your external IP or host name.
  5. Join your own server. With your server running, you can start Minecraft on your server computer and join the game.
    • Click "Multiplayer"
    • Click "Add Server"
    • Type localhost into the "Server Address" field.
    • Join the game.

Related Articles