Sunday, December 1, 2013

HOW TO SETUP A MINECRAFT MULTIPLAYER SERVER

HOW TO SETUP A MINECRAFT MULTIPLAYER SERVER!.
Install Game minecraft on windows, and setting windows based minecraft server


What this guide covers:

Creative / Classic Servers
Survival / SMP / Beta Servers
Bukkit Servers / Modded Servers


NOTE: I run Windows as my primary operating system, so I'm not sure if the following setup instructions are the same for all operating systems. Thus, this guide is the most accurate for setting up Windows-based Minecraft servers!



Hello everyone!

This will be my first guide, so bear with me. Although there are a lot of guides out there dedicated to setting up a working server, when I was figuring things out myself, it seemed like I was always getting stopped by one problem or another and setting up a server was a lot harder than I thought it should be, especially when I was trying to set up a modded server. Being a person who pays attentional to detail, I'll make sure to have the instructions in this guide explained as best as possible so that(hopefully) setting up a working server will be a simple, and easy process for any Minecraft player, be s/he old or new!

So! Let's get started!



Table of Contents

Press Ctrl + F and search for the number and letter corresponding to the section!)
__________________________________________________________________________________________

1.0a - Setting up a Classic (Creative) Server!
2.0a - Setting up a Non-Modded SMP (Beta / Survival Multi-Player) Server!
3.0a - Setting up a Modded SMP (Beta / Survival Multi-Player) Server!
4.0a - Server Optimization!
5.0a - Non-detailed/Concise Setup for Everything (For all you lazy readers)
6.0a - Frequently Asked Questions! (FAQs)
__________________________________________________________________________________________



Posted Image

1.0a - Setting up a Classic (Creative) Server!


Step 1: 

First thing you'll need to do is make a folder somewhere on your computer for all your server files. You can call it whatever you want, but just make sure you put it somewhere you can easily find it.

Posted Image

As you can see in the photo, I just placed my server folder in the My Documents folder and called it Minecraft Server, but like I said before, you can call it whatever you want and place it wherever you can easily find it.

Step 2: 

Next, you will need to download the server files and put them in the folder you just created.

For the classic server files, click this link: 
http://www.minecraft...raft-server.zip

After you have finished downloading the server files, put the .zip file in the server folder you created, and extract it to the folder. In my screenshot, the files are being extracted to the Minecraft Server folder I created earlier.

Before Extraction

Posted Image

After Extraction

Posted Image


Step 3: 

Next thing you'll need to do is test your server by double-click the start server.bat file, and a command prompt window should pop up. If it popped up like it does in the screenshot below, then you've done everything up until now correctly.

Posted Image

Just to explain a bit what it's doing... the first time you run start server.bat, it creates the files you'll need to run the server effectively, such as the world folder and your user logs and files. The server failing to load the text files is perfectly normal... the first time you run it.


Step 4: 

Next, close your server(if you still have it running), and go back into your server folder. Look for aserver.properties file, and open it with notepad. If it says it can't find a program to open it with, just choose the "select program from a list" option, and you should see notepad in the list of programs. If you somehow don't see notepad in the list, and/or you can't open the file, then try opening the file with other notepad-like programs.

The contents of the server.properties file should look like it does here:

Posted Image

Within this file, you can set all sorts of stuff like anonymous login(verify-names), the maximum amount of people you'll want on your server at one time, etc. The most noticable setting is the name of your server. To rename your server, just edit the "server-name=Minecraft Server" line, and change the Minecraft Server part of it to whatever you want your server name to be.

If you want this server to be private, then change the public=true line to public=false.

IMPORTANT!: Notice the port number is 25565 in the server.properties file! You WILL need to port forward the 25565 port if it hasn't been forwarded already! Doing this will allow people to connect to your server!

Once you've finished setting up your server.properties file, save it and exit. You now have your very own classic server set up! Your server will appear in this list when your server is running:
http://www.minecraft.net/servers.jsp


Tip: 

Set admins, and player names by editing your text files within the server folder(admins.txt, players.txt, etc.) so it's to your liking! 

__________________________________________________________________________________________


Posted Image

2.0a - Setting up a Non-Modded SMP (Beta / Survival Multi-Player) Server!


Step 1: 

First thing you'll need to do is make a folder somewhere on your computer for all your server files. You can call it whatever you want, but just make sure you put it somewhere you can easily find it.

Posted Image

As you can see in the photo, I just placed my server folder in the My Documents folder and called it Minecraft Server, but like I said before, you can call it whatever you want and place it wherever you can easily find it.


Step 2: 

Next, you will need to download the server files and put them in the folder you just created.

You will need these:
http://www.minecraft... ... 6717341656
http://www.minecraft... ... 6717341656

Download those, and place them in your server folder so it looks like this:

Posted Image


Step 3: 

Now that you have gotten your server packages where you need them, go ahead and openMinecraft_server.exe - the one with the minecraft block as the icon. A java screen thing should make itself visible when you do, and it will also create the server files.

Posted Image

Now close your server, and open up the server.properties file using notepad, or any other notepad-like program. The contents of the server.properties file should look like this:

Posted Image

Now there are few options here that you can fiddle around with. But first, you absolutely have to set an IP Address so you and others can connect to your server. To see the IP Address that you need to add, click on the Start Menu, and look for a Run button. It should be immediately to your right when you open the menu. Click it, and type cmd. It should open up a command prompt window. Type in ipconfig /all and it should display your network information. Look for your IP Address listed in the information, and add it to theserver-ip= line in the server.properties file. Save it, and you've done the critical stuff. Now you can fiddle around with other options. I will list them and explain what each of them do in the screenshot below.

I placed the image directly onto the guide for convenience's sake, but if for some reason the text is too small for you to read, please follow this link instead:
http://img339.images...rvertut15a.png/

Posted Image


Step 4: 

Pat yourself on the back and run your server by double-clicking Minecraft_Server.exe! You now have a fully functioning non-modded SMP server!

Tip: 

You will need two different IP Addresses. Your LAN IP Address, which will allow YOU to connect to the server... and your WAN IP Address, which will allow others who aren't using your internet connection to connect.

To see what your WAN IP Address is, click here: 
http://wanip.info/

__________________________________________________________________________________________



Posted Image

3.0a - Setting up a Modded SMP (Beta / Survival Multi-Player) Server!


Before we get started, you have a few options that you can choose from to mod your server. There's the heavily outdated Hey0 Server, it's successor, Bukkit, and then a direct .jar edit, however there are only a select few mods which I've seen that support a direct modification of the .jar file.

We'll start with the Bukkit server since it's the most popular, however, if you want, you can always skip ahead by using Ctrl+F and finding the section you're interested in.

__________________________________________________________________________________________



Posted Image


Step 1:

First thing you'll need to do is create a folder somewhere. This can be named anything, and be placed anywhere as long as you can easily find it. I'm going to name my folder "Bukkit Server" and place it in My Documents. Like I said though, you can place it anywhere you want. It should look something like this:

Posted Image


Step 2: 

Next, you will need to download CraftBukkit.jar from here and place it in the folder you created: 
http://ci.bukkit.org....1-SNAPSHOT.jar


Step 3: 


Now you will need to open up Windows Notepad(can usually be found by going into your start menu and looking under the Accessories menu). Now you'll need to place a bit of code. It varies based on if you're running 32-bit, or 64-bit Windows, but even if you don't know, you can always just try both and if one doesn't work, then just go with the other.

For 32-bit systems, place this code:



@echo off
java -Xincgc -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
pause

Posted Image

For 64-bit systems, place this code:


@echo off"%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar
pause

Posted Image


Now, you'll need to save the file as a .bat file type. To do this, go under File tab in Notepad and chooseSave As . It should pop up with a Save As window where you can name your file and save it to a certain location. You can name the file whatever you want(I named mine Start Bukkit), but make sure you save it as a .bat file! To do this, click the Save as type: drop down menu, choose All Files from it, and then name your .bat file whatever you want, but put a .bat at the end of the name instead of a .txt.This will allow you to execute the code inside the file instead of just opening up the notepad in editing mode. 

Check the screenshots below if you're still confused.

Posted Image
Posted Image


Step 4: 

Place the .bat file you just created into the same folder you created in Step 1, so it should be in the same folder as the craftbukkit-0.0.1-SNAPSHOT.jar, run the .bat file, and you're done! All that's left is to join!

Posted Image

__________________________________________________________________________________________



Posted Image

Step 1: 


First thing you'll need to do is make a folder somewhere on your computer for all your server files. You can call it whatever you want, but just make sure you put it somewhere you can easily find it.

Posted Image

As you can see in the photo, I just placed my server folder in the My Documents folder and called it Minecraft Server, but like I said before, you can call it whatever you want and place it wherever you can easily find it.


Step 2: 

Next, download hMod:


You can choose either. I only uploaded both because some people favor zip files over rars, and vice-versa.
ZIP format: http://www.mediafire...7f75vvof4d3n5p9
RAR format: http://www.mediafire...d2j9xax47e066r0


Extract hMod to the folder you created. It should look something like this after the extraction:

Posted Image


Step 3: 

Now double-click server_nogui.bat, and it should begin to run the server. A successful launch(while still preparing the spawn point) should look like this:



NOTE: If you look at the server command prompt screenshot above, you'll notice that it says it's for Minecraft v1.2_01, but it is still compatible with 1.2_02!


Close the server and open up your server.properties file using notepad or another notepad-based program. You'll notice immediately near the top of the file, there's a plugins= line. This is where you will tell the server what mods to load into the game. There is also a plugins folder within your server folder where you will put your mod files so that the game can read them.

Here is a list of the hMod plugins(SOME MAY BE OUT OF DATE!):
http://wiki.hey0.net/index.php/Plugins


You will also need to set your LAN IP Address in the server.properties file, and port forward the 25565 port in your router settings. The rest of the file is pretty straight-forward. I'd list them all for you, but there's like 30 options, and it would be really tedious to explain every last one of them.

Anyway, that's how you get a hMod modded server running.



__________________________________________________________________________________________



Contents [hide]



Although this is an easier and MUCH stabler way to mod a server, there are only a few mods out there with server support for Notch's server software. One of the most noticeable ones being SDK's Gun Mod. Forum topic is here: http://www.minecraft...hp?t=92206&f=25



First thing you'll need to do is make a folder somewhere on your computer for all your server files. You can call it whatever you want, but just make sure you put it somewhere you can easily find it.

Posted Image

As you can see in the photo, I just placed my server folder in the My Documents folder and called it Minecraft Server, but like I said before, you can call it whatever you want and place it wherever you can easily find it.


Step 2: 

Next, you will need to download the server files and put them in the folder you just created.

You will need these:
http://www.minecraft... ... 6717341656
http://www.minecraft... ... 6717341656

Download those, and place them in your server folder so it looks like this:

Posted Image


Step 3: 

Now that you have gotten your server packages where you need them, go ahead and openMinecraft_server.exe - the one with the minecraft block as the icon. A java screen thing should make itself visible when you do, and it will also create the server files.

Posted Image

Now close your server, and open up the server.properties file using notepad, or any other notepad-like program. The contents of the server.properties file should look like this:

Posted Image

Now there's a few options here that you can fiddle around with. But first, you absolutely have to set an IP Address so you and others can connect to your server. To see the IP Address that you need to add, click on the Start Menu, and look for a Run button. It should be immediately to your right when you open the menu. Click it, and type cmd. It should open up a command prompt window. Type in ipconfig /all and it should display your network information. Look for your IP Address listed in the information, and add it to theserver-ip= line in the server.properties file. Save it, and you've done the critical stuff. Now you can fiddle around with other options. I will list them and explain what each of them do in the screenshot below.

I placed the image directly onto the guide for convenience's sake, but if for some reason the text is too small for you to read, please follow this link instead:

How to install Minecraft Forge for Minecraft:

For 1.6

Screenshot:

84594d6e47af8e69dd19ab6a817e9f99 Minecraft Forge for Minecraft 1.7.10/1.7.2/1.6.4

How to install Minecraft Forge for Minecraft:

  • Download at the link below.
  • Open Minecraft Forge installer.
  • Click OK.
  • Enjoy



Step 4: 

Run your server by double-clicking Minecraft_Server.exe! You now should have a fully functioning Modded SMP server!

Tip: 

You will need two different IP Addresses. Your LAN IP Address, which will allow YOU to connect to the server... and your WAN IP Address, which will allow others who aren't using your internet connection to connect.

To see what your WAN IP Address is, click here: 
http://wanip.info/


(Optional) Step 5: 

For a list of the current up-to-date mods, visit the Mapping & Modding forum and there should be a sticky, or you can optionally click this link: 
http://www.minecraft...hp?f=25&t=93171

Essentially, installing mods on a multiplayer server using Notch's server software is done the same way as installing Single player mods. The only difference is that instead of going into .minecraft/bin/minecraft.jar under %appdata%, you go into the server folder and open up the minecraft_server.jar instead.

For those who haven't modded their game before, what you do is you go and get an archiving program such as WinRAR, or 7-zip, and you open the minecraft_server_.jar folder with it, then copy and paste the mod files into it. Usually when modding single player, you delete the META-INF folder, but in server modding, you don't.

NOTE: You cannot put mods that aren't specifically suited for multiplayer into theminecraft_server.jar and expect it to run! Server files and Single player files are different even if it's the same mod!

Once you have opened the minecraft_server.jar using WinRAR or another archiving program, copied and pasted your mod files into the minecraft_server.jar archive, then you can close the archive and start up your server!

That's basically it for server mod installation using Notch's server software.


__________________________________________________________________________________________





4.0a - Server Optimization!


This section is near obsolete since Notch finally got some work done on his code, but I'll leave it up anyways in case there's a need for it in the future. For now, it still houses a couple solutions to server lag problems.


1. Minecraft.bat file (Does not work with Hey0's Server Mod)

Create a new text file, and rename it to Minecraft.bat. If it says that renaming the file might make it unstable, click OK and rename it anyway. Now right-click on the .bat file you just created, and there should be an Edit option. Click that, and it should bring up a notepad-like window. Copy and paste this into the .bat file:


java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

Save the file, and make sure it's in your server folder. Launch your server with that .bat file from now on.


__________________________________________________________________________________________





5.0a - Non-detailed/Concise Setup for Everything (For all you lazy readers)


This tutorial section assumes that you do not need your hand held completely throughout the entire setup process. Things like adding your IP to the server properties file, what certain options do in said properties file, and other detailed instructions will not be found here. If you are lost, or are frustrated because you don't understand how to do a certain part, you should read the detailed instructions for your desired setup above.



Classic Creative Server: 

1. Create, name, and place a server folder to store your server files in.
2. Download the classic server files: http://www.minecraft...raft-server.zip
3. Extract the server files to the folder you created.
4. Run start server.bat, let it load fully, and then close it.
5. Set up your server using the server.properties file.
6. Setup Complete. Server is ready.


Non-Modded Beta SMP Server: 

1. Create, name, and place a server folder to store your server files in.
2. Download Beta server files: 
http://www.minecraft...v=1296726203482
http://www.minecraft...v=1296726203482
3. Place the server files into your server folder.
4. Run Minecraft_Server.exe, let it load fully, and then close it.
5. Set up your server using the server.properties file.
6. Setup complete. Server is ready.


Bukkit Modded SMP Server:

1. Create, name, and place a server folder to store your server files in.
2. Download CraftBukkit.jar and put it in the server folder: 
http://ci.bukkit.org....1-SNAPSHOT.jar
3. Make a .bat file and place the code that corresponds to your system inside it.

For 32-bit Systems 


@echo off
java -Xincgc -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
pause

For 64-bit Systems


@echo off
java -Xincgc -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
pause

4. Run the .bat file.
5. Close your server and set it up using the server.properties file.
6. Setup complete. Server is ready.

How to Install Minecraft 1.8.6 on Your PC

Modded Beta SMP Server (Notch Software)
1. Create, name, and place a server folder to store your server files in.
2. Download Beta server files: 
http://www.minecraft...v=1296726203482
http://www.minecraft...v=1296726203482
3. Place the server files into your server folder.
4. Run Minecraft_Server.exe, let it load fully, and then close it.
5. Set up your server using the server.properties file.
6. Open up minecraft_server.jar with an archiving program such as WinRAR, and place the files that came with your mod in there.
7. Setup complete. Server is ready.


Modded Beta SMP Server (hey0's Server)
1. Create, name, and place a server folder to store your server files in.
2. Download the hey0 server mod: 
.RAR: http://www.mediafire...d2j9xax47e066r0
.ZIP: http://www.mediafire...7f75vvof4d3n5p9
3. Extract the server files to the folder you created.
4. Run server_nogui.bat
5. Download hMod plugins from here: 
http://wiki.hey0.net/index.php/Plugins
6. Place the plugin files in the plugins folder in your server folder.
7. Setup your server.properties file, and add the plugin names of the .jar files associated with them(if you installed any plugins) onto the plugins= line.
8. Setup complete. Server is ready.
__________________________________________________________________________________________




6.0a - Frequently Asked Questions! (FAQs)


If you are having problems with your server, refer to these and see if any of them can help you with setting up your server or solving other problems.



Q: I'm getting an error when I try to start my server that says: "'java' is not recognized as an internal or external command, operable program or batch file." What's wrong?
A: You probably just don't have Java installed. Go here and download the latest version for your computer:
http://www.java.com/...&os_version=5.1


Q: Where can I find my LAN or WAN IP?
A: For your LAN IP, click Run... under your start menu, and type in ipconfig /all into the command prompt window that pops up. It should be listed for you there, unless for some reason you aren't connected to the internet. For your WAN IP, click this link: http://wanipaddress.com/


Q: What is this 64-bit and 32-bit stuff that you're asking me to type in when setting up a bukkit server? How do I know what type of system I'm running?
A: Depending on what type of OS you're running, there are different answers to this question. If you're running Windows XP, then right-click My Computer and click Properties. It should bring up a window with your computer's basic information. If your Windows XP version does not say that it's a 64-bit version, then you are running a 32-bit system. If it does say that it's a 64-bit version, well... there you go. :(

If you're running Vista or Windows 7, go to your Control Panel and double-click System and Maintenance, then click System. You can view your system type from there.

If you're running anything earlier than XP, you're probably running on a 32-bit system.


Q: Why did my server stop working after a new version of Minecraft came out?
A: If you have mods on your server, chances are that it's your mods mucking up your server. All mods must be created from the same version of Minecraft. So if you're running a mod that was made during the 1.3_01 version of Minecraft, and Minecraft is now 1.4, then the mod on your server is outdated and will no longer work with your server. You must wait for the mod's creator to come out with a new version of their mod. To make your server operational again, you must create a new server, or if you're running bukkit, just disable the mod by deleting it from your server folder..
__________________________________________________________________________________________

UPDATES

April 4, 2011 - Added a FAQs section to the guide.
March 13, 2011 - Re-formatted the guide for better readability.
March 13, 2011 - Added Bukkit Server Tutorial.

1 comment: